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:

  • Anchor Tag <a> tag defines a hyperlink, which is used to link from one page to another page.Key Characteristics of HTML Anchor LinksSpecified by the … Read More
  • Paragraph Horizontal and Line Break Tags The <p> tag defines a paragraph.Browsers automatically add a single blank line before and after each.<p>This is a paragraph.</p&g… Read More
  • Heading Tags The <h1> to <h6> tags create headings in HTML.where <h1> is the biggest and most important, and <h6> is the smallest and… Read More
  • HTML ENTITIES HTML entities are codes used to represent special characters and symbols that have reserved meanings in HTML. These entities are especially… Read More
  • HTML Comments it is used to understand the code written by someone.the browser will ignore the comments Types of Comments in HTMLSingle-line CommentsSing… Read More

0 Comments:

Post a Comment

Do leave your comments