The Unordered List (ul) element in the HTML


 Create a Bulleted Unordered List:

  • HTML has a special element for creating unordered bulleted lists, i.e., the <ul> element.
  • The <ul> element has an opening tag and a closing tag.
  • The bulleted unordered lists start with:

                    <ul>

  • The unordered bulleted lists end with:

                    </ul>

  • The unordered bulleted lists start with an opening <ul> element, followed by any number of <li> elements. Finally closed with a </ul>.
  • For example:

<ul>
  <li>milk</li>
  <li>cheese</li>
</ul>    


  • The above example will create a bulleted list of milk and cheese.

No comments:

Post a Comment