HTML Lists
Unordered List (<ul>)
• Creates a list with bullet points
Syntax:
<ul><li>Item</li>
</ul>
Example:
- Coffee
- Tea
- Milk
Ordered List (<ol>)
• Creates a numbered list
• <li> defines each list item
Syntax:
<ol><li>Item</li>
</ol>
Example:
- Red
- Blue
- Green
Ordered List Attributes
reversed - displays the list in descending order (e.g., 3,2,1)
start - sets the starting number of the list
type - sets the numbering style (1, A, a, I, i)
Syntax:
<ol reversed start="5" type="A"><li>Sample</li>
</ol>
Example Output:
- Apple
- Banana
- Cherry
Description List (<dl>)
• Used for name/value pairs such as terms and their definitions
• <dt> - defines the term
• <dd> - defines the description
Syntax:
<dl><dt>Term</dt>
<dd>Definition goes here</dd>
</dl>
Example:
- Linotype
- Line-casting allowed type to be selected, used, then recirculated automatically. This greatly increased printing speed.
- Photocomposition
- Typefaces are stored on film then projected onto photo-sensitive paper. Lenses adjust the size of the type.
- Digital Type
-
Digital typefaces store the outline of the font in formats like PostScript. The outline can be scaled to any size.
PostScript became widely used due to its graphics support and early implementation on the Macintosh and Apple printers.