The following attributes are placed within structure tags so that the HTML elements can be displayed in specific places:
| Attribute | Value | Visual Effect |
|---|---|---|
| ALIGN | LEFT RIGHT CENTER JUSTIFY |
LEFT RIGHT CENTRE JUSTIFY |
| NOWRAP | Prevents text from skipping to the next line | |
| ID | Gives the tag's contents a name (for linking to it) | |
| LANG | Specifies a different language | |
| CLASS | Assigns a class to the contents (for style sheets) | |
| CLEAR | Used when text is surrounding an image. It brings the text as far down on the page as needed in order to have a clear margin |
There are tags used to indent text: These are called containers. For example:
| Container | Visual Effect |
|---|---|
| <blockquote> and </blockquote> | Indented text |
| <address> and </address> | For writing contact information |
| <note> and </note> | |
| <fn> and </fn> | |
| <banner> and </banner> | |
| <pre> and </pre> | For writing preformatted text; keeping the spaces, etc., in place |
A list is a structured paragraph containing a series of items. There are three types of lists:
This is their syntax:
| Container | Type of List | Visual Effect |
|---|---|---|
<ol>
</ol> |
Ordered |
|
<ul>
</ul> |
Unordered |
|
<dl>
</dl> |
Definition |
|
There are several attributes used only for lists:
| Attribute | Value | Visual Effect |
|---|---|---|
| COMPACT | tightens line spacing (more compact list) | |
| PLAIN | removes bullets | |
| SEQNUM | defines the first number | |
| START | defines the first number | |
| CONTINUE | starts at the number where the last list left off |
|
| TYPE (for ordered lists) | 1 A a I i |
Arabic numerals (default) Uppercase letters Lowercase letters Roman numerals (I, II, III, IV ...) Lowercase Roman numerals |
| TYPE (for unordered lists) | circle square disc |
|