TOP CATEGORIES

×

What is unordered list in HTML?

H

Heena

List in HTML

In HTML, a list (represented like <li>) is used to organize the data in a sequence like 1, 2, 3,.... or I, II, III,... or ., .,...

Unordered List in HTML (<ul>)

An Unordered List (<ul>) displays elements in a bulleted (disc, circle, square, none) format, for example:

<ul>

    <li>list 1</li>

    <li>list 2</li>

</ul>

Brief Description of Bullet Format

  • disc: Sets the list item marker to a bullet (default)
  • circle: Sets the list item marker to a circle
  • square: Sets the list item marker to a square
  • none: The list items will not be marked

<ul style="list-style-type:disc;">

    <li>list 1</li>

    <li>list 2</li>

</ul>

0 votes

Your Answer

Email: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)