DEV Community

keepoSteepo
keepoSteepo

Posted on

1

Unordered and Ordered Lists

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
  1. Pulp Fiction
  2. The Dark Knight
  3. The Godfather: Part II
  4. The Godfather
  5. 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>


  • Heroku

    Simplify your DevOps and maximize your time.

    Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

    Learn More

    Top comments (0)

    Image of Docusign

    🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

    Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

    Learn more