How to Use ASCII Characters in Text, Scripts and HTML
Post By :
Anonymous
Rate:
Vote
How to Use ASCII Characters in Text, Scripts and HTML
Introduction
ASCII stands for American Standard Code for Information Interchange. Computers only understand numbers, and ASCII code is the numerical representation of a character such as a??@a?? or an action. ASCII is used in Microsoft Word when you save a file as a??text only.a?? You can use ASCII characters in text, scripts and HTML. Here are some steps to use ASCII characters.
Instructions
Difficulty: Moderately Challenging
Steps
1
Step One
Go to W3 Schools and print off or download an HTML 7-Bit ASCII chart so you can have the code references handy. This gives you the correct format to make ASCII characters in HTML text and scripts.
2
Step Two
Decide what you are going to need to put in HTML. Figure out if ita??s info for your Web site or a document you need for another purpose. Decide on the format and how you will use ASCII.
3
Step Three
Type out the document in its clear form before adding HTML. Note each part where you will need ASCII by highlighting it or bolding it on the page. This will give you a reference point to go back when you start adding ASCII.
4
Step Four
Go back over the highlighted and bold areas after you type everything out. Using the reference guide you downloaded or printed, add in ASCII at the parts you need HTML.
5
Step Five
Double-check the entire document to make sure everything is correct. Run it on your Web site as a test to ensure quality. If mistakes are visible, go back into the document and check the code you entered.
Overall Tips & Warnings
- Making a plan of what you want your document to look like will help save you time, but you can also add HTML as you come up with ideas. Give yourself some time to take a creative approach.
- Reference Web sites such as the ASCII homepage if you get stuck. This should give you all the information you need. There are online help forums at this site that may be able to steer you in the right direction.
- If you do not possess a strong knowledge of ASCII or HTML, make sure you save your work up to that point before adding anything to your document.
- One character in the wrong place can mess up your entire document, so be very careful with typing and reading the reference sheet.
Overall Things You'll Need
- Computer
Recommended Websites
Post By :
Anonymous
Rate:
Vote
How to Use ASCII Characters in Text, Scripts and HTML
Introduction
Wea??re spoiled by word processing programs that easily let us add special characters like the degree symbol, dashes and ampersands into our documents. You may find that when youa??re writing a PHP script, a text file or an HTML Web page, those characters dona??t display properly. In order to get them to show up right on your Web pages, you need to use special codes to tell the browser which character to display. Herea??s how to use ASCII characters in your Web pages and scripts.
Instructions
Difficulty: Moderately Easy
Use ASCII Characters
Steps
1
Step One
Find a reference chart that gives you the codes to use for your purpose. Many ASCII character charts include the ASCII number codes in hex, dec and HTML numbers as well as HTML names.
2
Step Two
Find the symbol or character that you want to include in your document.
3
Step Three
At the point where you want to display the symbol or character, type the appropriate code.
4
Step Four
Save your file as usual.
Examples
Steps
1
Step One
To display an ampersand in an HTML file, type: &
2
Step Two
To display left angle quotes in your document, type: «
3
Step Three
To display the Registered trademark symbol (R inside a circle), type: ®
Overall Tips & Warnings
- If youa??re using ASCII encoding in an HTML document, be sure to specify the character set in a meta tag in the document head.
- Remember to end all HTML ASCII substitutions with a semi-colon.
Overall Things You'll Need
- A text program
- A Web browser
- A chart of ASCII characters
advisement
Recommended Websites