Resources: Lists
Activity: Exploring the Presentation of List Data
- XHTML supports three types of lists: ordered
lists, unordered lists and data definition lists.
- The ordered and unordered lists both use the
<li> syntax for individual items within the list. The only difference in
their syntax is for the parent tag:
- <ul> for unordered lists (ie, lists that include a notation before
each item, such as bullets, etc)
- <ol> for ordered lists (ie, lists that have numbered items, such as
arabic, roman, etc.)
- In both vases, the parent tag is followed by <li> tags for
each individual items on the list
- The data definition list works has its own
syntax
- You utilize the <dl> to indicate you are setting up a
definition list
- Then, for very topic you are defining, there is a parent <dt>
tag and a <dd> tag for the definition itself
- Let's say you were creating a definition list for types
of XHTML lists.
- Here is some sample code:
Lists
- Ordered Lists
- Presents a list of numbered items. Of course, you can re-style the numbering set through styling instructions.
- Un-Ordered Lists
- Presents a list of "bulleted" items. Of course, you can re-style the delimiting symbol through styling instructions.
- Data Definition Lists
- Presents a list of defined items in dictionary-like presentation.
- You can test your understanding of list
syntax at this interactive link:
List Tutorial