To create an unordered list with three items in it, those being Vikings, Bears and Lions, the code would look something like this;
- Vikings
- Bears
- Lions
- Pulp Fiction
- The Dark Knight
- The Godfather: Part II
- The Godfather
- The Shawshank Redemption
To rewrite the list above in descending order, the code might look a little something like this;
<ol reversed start = “5”>
<li>Pulp Fiction </li>
<li> The Dark Knight</li>
<li> The Godfather: Part II </li>
<li>The Godfather </li>
<li> The Shawshank Redemption</li>
</ol>
There are three HTML elements used in a description list. There is the description list which is represented as
- , there is the description item, represented by the term
- and finally, we have the term
- which is used for the description of the item.
I was attempting to write a code for the following list items; Home, FAQ, Contact Us, and pointing back to the index.html, faq.html, and contacts.html files respectively. I was a little confused as whether my
- tags should be inside the tags, or Is better to read if it’s done this way?
<nav>
<ul>
<li> <a href= "index.html">Home> </li>
<li> <a href="faq.html">FAQ> </li>
<li> <a href="contact.html">Contact Us> </li>
</ul>
</nav>
- tags should be inside the tags, or Is better to read if it’s done this way?
Top comments (0)