| Property name | Code | Example | Description |
| bold/ strong |
<b></b> <strong></strong> |
bold strong | bolds the text inside the open and close tags; <strong> is ADA compliant and recognized by text readers - <bold> is not. |
| italics/ emphasis |
<i></i> <em></em> |
italics emphasis | italicizes the text inside the open and close tags; <em> is ADA compliant and recognized by text readers (voice puts emphasis on the word) - <i> is not. |
| pre | <pre></pre> | this is
pre-formatted text.
All the spaces and
line
returns are observed. |
pre-formatted text - renders the text in a courier font as is typed, taking line returns, spaces, tabs - good for representing code |
| superscript subscript |
<sup></sup> <sub></sub> |
superscript text subscript text |
raises and lowers text; also decreases font size by -1 |
| changing size | <font size="+1"></font> <font size="-1"></font> <font size="4"> |
+2 size -2 size size 4 |
font sizes can be increased or decreased incrementally from 1-7. Fonts can also be set to a specific size (1-7), but this can be overridden by the user's defaults, so don't rely on it. Also, with different screen resolutions, some smaller text could be unreadable on some screens. It's best not to set a specific size - just allow the user's defaults to apply, and use the + or - if needed for emphasis. |
| blockquote | <blockquote></blockquote> | regular text in documentblockquoted textback to regular text |
blockquote is used for referencing other sources or authors. ADA states not to use this property just for the use of indenting. There is no specific html tag for indenting or "tab"ing. Most users utilize the blockquote tag when necessary, just keep in mind that it may not be recognized accurately by ADA readers. |
| headings | <h1>text goes here</h1> <h1 align="center">text goes here</h1> |
H1h2h3h4h5 |
Pre-formatted headings for outlines or document sections. The headings adjust size and boldness of text, plus insert line breaks afterwards. In accordance with ADA, these should always be used in order; don't just use an H3 tag for the formatting. These tags can be aligned without using the <div> tags: <h1 align="center"> |
| aligning (applies to paragraphs) | <div align="right"></div> | Right align |
The <div> tag can be used not only to align text paragraphs (left and right), but can also be used around other page elements, such as images or tables. images and table can also be aligned within their own definitions. Using <div> will cause a line break before and after the tag. Full align (where the text is lined up straight on both the left and right sides, as in a word processor) is not an option in html. |
| font face | <font face="Arial"></font> | Arial Verdana Courier Charlesworth |
The font face can be set in the body tag to apply to the entire page, or for a particular word or section. If the font is not supported, the browser will guess and try to match the font closest to what you specify. You can also define 2nd and 3rd choices for more control: <font face="Arial,Helvetica"></font> Note that different browsers and operating systems will have different font sets. Serif fonts (Times) are best to use for body text; San serif fonts (Arial, Verdana) can be used in headings/titles to contrast the body text. |
| color | <font color="#FF00FF"></font> | #FF0000 red text | Text color can be defined on any word(s) in the document until the font tag is closed - </font>. Except for in tables, the color must be defined in each cell. Color is defined by RGB (red, green, blue). Remember to use the # sign in front of the color code. (More on color below.) |