Write html code using both types of list tags

Recommended Answers

All 2 Replies

This is an ordered list:

  1. Item One
  2. Item Two
  3. Item Three

and its HTML looks like:

Begin Ordered List Element
List Item One
List Item Two
List Item Three
Close Ordered List Element

<ol>
    <li>Item One</li>
    <li>Item Two</li>
    <li>Item Three</li>
</ol>

This is an unordered list:

  • Item One
  • Item Two
  • Item Three

and its HTML looks like:

Begin Unordered List Element
List Item One
List Item Two
List Item Three
Close Unordered List Element

<ul>
    <li>Item One</li>
    <li>Item Two</li>
    <li>Item Three</li>
</ul>

Good luck in your class :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.