HTML Lists

Lists allow you to group related items together in a structured way. HTML offers two main types: unordered lists ( <u1> ), which use bullet points, ordered lists ( <ol> ), which are numbered. Each list item is wrapped in an <li> tag.

Tutorials dojo strip

HTML Lists Syntax

Explanation of Syntax:

  • <ul>: Unordered list, which creates a bulleted list.
  • <ol>: Ordered list, which creates a numbered list.
  • <li>: List item, used within <ul> or <ol> tags to define each list entry.
HTML




HTML Lists Example Code

Explanation of Code:

  • Unordered List (<ul>): The <ul> tag creates a bulleted list. Each <li> tag inside defines an item on this list.
  • Ordered List (<ol>): The <ol> tag creates a numbered list. Each <li> tag inside defines a numbered item.
HTML




HTML Labs

Tutorials dojo strip