The document discusses different types of lists in HTML including unordered lists (UL), ordered lists (OL), and definition lists (DL). It describes the structure and semantics of each list type. The document also covers styling lists by changing bullet types and images, customizing spacing and margins, nesting lists, and changing the display of list elements.
11. ORDERED LISTS
• Order in the list has context
<ol>
<li>Private</li>
<li>Captain</li>
<li>General</li>
</ol>
12. DEFINITION LISTS
<dl>
<dt>Border-radius</dt>
<dd>A rule that let’s you specify rounded
edges in box elements.</dd>
<dt>Browser Prefixes</dt>
<dd>Browsers implemented a set of prefixes
to each rule like –webkit border-radius that
allows for emerging CSS rules to be used
earlier.</dd>
<dt>CSS Animations</dt>
<dd>CSS Animations allow you to modify
transformations over time by the
use of keyframes.</dd>
</dl>
13. DEFINITION LISTS
• List of terms and definitions
<dl>
<dt>Border-radius</dt>
<dd>A rule that let’s you specify rounded
edges in box elements.</dd>
<dt>Browser Prefixes</dt>
<dd>Browsers implemented a set of prefixes
to each rule like –webkit border-radius that
allows for emerging CSS rules to be used
earlier.</dd>
<dt>CSS Animations</dt>
<dd>CSS Animations allow you to modify
transformations over time by the
use of keyframes.</dd>
</dl>
14. DEFINITION LISTS
• List of terms and definitions
• Much less common
<dl>
<dt>Border-radius</dt>
<dd>A rule that let’s you specify rounded
edges in box elements.</dd>
<dt>Browser Prefixes</dt>
<dd>Browsers implemented a set of prefixes
to each rule like –webkit border-radius that
allows for emerging CSS rules to be used
earlier.</dd>
<dt>CSS Animations</dt>
<dd>CSS Animations allow you to modify
transformations over time by the
use of keyframes.</dd>
</dl>
21. BULLET STYLES
• The type attribute
• For UL lists
• disc (default), square and circle
22. BULLET STYLES
• The type attribute
• For UL lists
• disc (default), square and circle
• ul {list-style-type: circle}
23. BULLET STYLES
• The type attribute
• For UL lists
• disc (default), square and circle
• ul {list-style-type: circle}
• For OL lists
24. BULLET STYLES
• The type attribute
• For UL lists
• disc (default), square and circle
• ul {list-style-type: circle}
• For OL lists
• upper or lower, alpha or roman
25. BULLET STYLES
• The type attribute
• For UL lists
• disc (default), square and circle
• ul {list-style-type: circle}
• For OL lists
• upper or lower, alpha or roman
• decimal (default), decimal-leading-zero
26. BULLET STYLES
• The type attribute
• For UL lists
• disc (default), square and circle
• ul {list-style-type: circle}
• For OL lists
• upper or lower, alpha or roman
• decimal (default), decimal-leading-zero
• ol {list-style-type: lower-alpha}
33. SHORTCUT
• list-style
• ul {list-style: circle };
• ul {list-style: url(icons/icon-document.gif)};
34. SHORTCUT
• list-style
• ul {list-style: circle };
• ul {list-style: url(icons/icon-document.gif)};
• ul {list-style: circle url(icons/icon-document.gif)};
44. CHANGING DISPLAY
• ULs and LIs are block level
• display-inline
• Can’t modify widths of inline elements
45. CHANGING DISPLAY
• ULs and LIs are block level
• display-inline
• Can’t modify widths of inline elements
• display-inline-block
46. CHANGING DISPLAY
• ULs and LIs are block level
• display-inline
• Can’t modify widths of inline elements
• display-inline-block
• Let’s you modify w