Learn HTML – Part 17 – ul Tag – Creating Unordered Lists

Learn HTML – Part 17 – ul Tag – Creating Unordered Lists

The HTML ul tag is used to create unordered lists in a web page. Unordered lists display items with bullet points and are commonly used for menus, feature lists, navigation links, and grouped content.


What is the ul Tag in HTML?

The ul tag stands for Unordered List. It groups related list items together.

Each item inside the list must be written using the li (List Item) tag.


Basic Syntax of ul Tag

<ul>
   <li>Item 1</li>
   <li>Item 2</li>
   <li>Item 3</li>
</ul>

The ul tag acts as a container, and the li tag defines each list item.


Example – Simple Unordered List

<ul>
   <li>HTML</li>
   <li>CSS</li>
   <li>JavaScript</li>
</ul>

Output:

  • HTML
  • CSS
  • JavaScript

How ul and li Work Together

  • ul defines the unordered list container.
  • li defines individual list items.
  • Every list item must be placed inside a ul or ol tag.

Where Unordered Lists Are Used

  • Website navigation menus
  • Feature lists on landing pages
  • Sidebar links
  • Product specifications
  • Blog categories

In WordPress themes, navigation menus are usually structured using unordered lists behind the scenes.


ul vs ol – Quick Comparison

Featureul Tagol Tag
Full FormUnordered ListOrdered List
Display StyleBullet PointsNumbered Items
UsageMenus, Features, GroupsSteps, Rankings, Instructions

Common Mistakes Beginners Make

  • Forgetting to close the ul tag
  • Adding text directly inside ul without li
  • Incorrect nesting of lists

Conclusion

The HTML ul tag is essential for structuring grouped content using bullet points. It works together with the li tag to properly display list items.

Understanding lists is very important because navigation menus, sidebar widgets, and many layout structures in WordPress themes are built using unordered lists.

What’s Next?

Now that you understand the ul tag, the next step is learning about the ol tag, which is used to create ordered lists in HTML.

Next: Learn HTML – Part 18 – ol Tag – Creating Ordered Lists →


Series: Learn HTML Series

Facebook
WhatsApp
Twitter
LinkedIn
Pinterest

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Articles from the Series

learn-html-part-63-complete-html-project-thumbnail
Learn HTML – Part 63 – Complete HTML Project (Build a Web Page)
Learn HTML – Part 63 – Complete HTML Project In this final lesson, we will build a complete HTML webpage...
learn-html-part-62-time-tag-date-time-thumbnail
Learn HTML – Part 62 – time Tag – Date & Time
Learn HTML – Part 62 – time Tag – Date & Time The HTML time tag is used to represent dates and times...
learn-html-part-61-mark-tag-highlight-text-thumbnail
Learn HTML – Part 61 – mark Tag – Highlight Text
Learn HTML – Part 61 – mark Tag – Highlight Text The HTML mark tag is used to highlight text that is...
learn-html-part-60-figcaption-tag-figure-caption-thumbnail
Learn HTML – Part 60 – figcaption Tag – Figure Caption
Learn HTML – Part 60 – figcaption Tag – Figure Caption The HTML figcaption tag is used to define a caption...
learn-html-part-59-figure-tag-media-content-thumbnail
Learn HTML – Part 59 – figure Tag – Media Content
Learn HTML – Part 59 – figure Tag – Media Content The HTML figure tag is used to group media content...
learn-html-part-58-track-tag-video-subtitles-thumbnail
Learn HTML – Part 58 – track Tag – Video Subtitles
Learn HTML – Part 58 – track Tag – Video Subtitles The HTML track tag is used to add subtitles, captions,...
learn-html-part-57-source-tag-media-sources-thumbnail
Learn HTML – Part 57 – source Tag – Media Sources
Learn HTML – Part 57 – source Tag – Media Sources The HTML source tag is used to define multiple media...
learn-html-part-56-picture-tag-responsive-images-thumbnail
Learn HTML – Part 56 – picture Tag – Responsive Images
Learn HTML – Part 56 – picture Tag – Responsive Images The HTML picture tag is used to display responsive...
learn-html-part-55-dialog-tag-modal-dialog-thumbnail
Learn HTML – Part 55 – dialog Tag – Modal Dialog
Learn HTML – Part 55 – dialog Tag – Modal Dialog The HTML dialog tag is used to create modal or popup...
learn-html-part-54-summary-tag-details-caption-thumbnail
Learn HTML – Part 54 – summary Tag – Details Caption
Learn HTML – Part 54 – summary Tag – Details Caption The HTML summary tag is used to define a visible...
Scroll to Top