Lists Flashcards
What sort of lists are there?
Unordered Lists (bulleted) Ordered Lists (numbered) Definition Lists
Tag for an ordered list
Tag for unordered lists
Tag for a list item
*
How do you nest a list within a list
Inside the first list, identify what spot to start the nested list. Then add a list item, and place the next list inside that li tag
- Oranges
- Bananas
- Apples
- Jazz
- Royal Gala
- Figs
When do you use a definition list?
When you have a list of terms and their definitions
How do you structure a definition list
Open a dl tag. Then open a dt tag (this is for the term to define) then open a dd tag (this is for the definition)
<dl>
<p></p>
<dt>Cricket ball</dt>
<dd>A ball used to play cricket</dd>
<p></p>
<dt>Basketball ball</dt>
<dd>A ball used to play basketball</dd>
<p></p>
<dt>Ping pong ball</dt>
<dd>A ball used to play ping pong</dd>
<p></p>
</dl>