Core HTML

Unordered Lists

An unordered list is used to present items that should be gathered together. In an unordered list, the list is encapsulated in <ul> tags. Each item in the list is contained in a <li> tag. The letters "ul" stand for unordered list, while the letters "li" stand for list item. We can put a title for the list directly inside the <ul> tag, but before any <li> tag to act as a heading. Here, we have The Seven Sacraments of the Church as our heading for the list. We used bold to make heading appear more significant.

SevenSacraments.html

<!DOCTYPE html>
<html>
<head>
  <title>XoaX.net's HTML Unordered List Example</title>
</head>
<body>
  <ul><b>The Seven Sacraments of the Church</b>
    <li>Baptism</li>
    <li>Confirmation</li>
    <li>The Eucharist</li>
    <li>Penance</li>
    <li>The Anointing of the Sick</li>
    <li>Holy Orders</li>
    <li>Matrimony</li>
  </ul>
</body>
</html>
 

Output

 
 

© 2007–2024 XoaX.net LLC. All rights reserved.