Unordered List

 

HTML Unordered List

  • An unordered list is a list of items that are not arranged in any specific, sequential order. Unlike ordered lists, the items in an unordered list are typically marked with bullet points, dashes, or other symbols to indicate list membership, but these markers do not imply any particular order.

Syntax for Creating Unordered Lists

cwh tutorial image


Key Characteristics of Unordered Lists

  • No specific sequence is required.
  • Typically displayed as bullet points.
  • Defined using the <ul> tag.
  • Individual items use the <li> tag.

Basic Example

<ul>
  <li>Pen</li>
  <li>Pencil</li>
  <li>Eraser</li>
</ul>

Output:

  • Pen
  • Pencil
  • Eraser

Customizing Bullet Points with 'type' Attribute

You can specify the style of bullet points using the type attribute. It supports three values:

  • disc - default bullet style
  • square
  • circle

Example Using Square Bullets:

<ul type="square">
  <li>Notebook</li>
  <li>Marker</li>
</ul>

Output:

cwh tutorial image

Related Posts:

  • HTML Lists Types of HTML ListsUnordered List: An unordered list is used to create a list of items that are not in any particular order. Each list item… Read More
  • Unordered List HTML Unordered ListAn unordered list is a list of items that are not arranged in any specific, sequential order. Unlike ordered lists, the items… Read More
  • figure tag The figure element is particularly useful for images, illustrations, diagrams, videos, audio clips, and other types of media.Use the alt attribu… Read More
  • PICTURE TAG The <picture> element in HTML is used to provide multiple sources of an image, allowing the   browser to choose the most appropr… Read More
  • HTML Text Formatting HTML formatting involves enhancing the visual presentation of text. It enables text manipulation for improved aesthetics, eliminating the n… Read More

0 Comments:

Post a Comment

Do leave your comments