Hours: We are open 24/7

1234 Company Drive, Buffalo, NY 14221

1231231234

Menu
Basic List Structure

We use the following structure to create both ordered and unordered lists:

Unordered List
 <ul> 
<li>Item 1</li> 
<li>Item 2</li> 
<li>Item 3</li> 
</ul> 
  • Item 1
  • Item 2
  • Item 3

This format uses the <ul> tag for an unordered list, and each item in the list is wrapped in an <li> tag. The unordered list will display with bullet points by default. You can customize this style using CSS.

Ordered List
 <ol> 
<li>First item</li> 
<li>Second item</li> 
<li>Third item</li> 
</ol> 
  1. First item
  2. Second item
  3. Third item

An ordered list, defined by the <ol> tag, numbers each item in the list by default. Like unordered lists, each list item is placed inside an <li> tag.


3. Nested Lists

You can also nest lists inside each other. This is useful when you want to organize related items under a specific category.

Example of nested unordered list:
 <ul> 
<li>Fruits<ul> 
<li>Apples</li> 
<li>Bananas</li> 
</ul></li> 
<li>Vegetables<ul> 
<li>Carrots</li>
<li>Spinach</li> 
</ul> 
</li> 
</ul> 
  • Fruits
    • Apples
    • Bananas
  • Vegetables
    • Carrots
    • Spinach

This will create a nested list with two main categories, each containing a sublist.


4. List Styling

Lists can be styled with CSS to change the appearance of the bullets or numbers, as well as the overall layout of the list.
Example of changing list bullet style:

 ul { list-style-type: square; } 

This will change the default round bullets to square ones. Similarly, you can modify the numbers in an ordered list.

Example:

 ol { list-style-type: upper-roman; } 

This will change the numbers in an ordered list to Roman numerals (I, II, III…).


5. List Items with Links

You can also add links inside your list items. This is commonly used in navigation menus or directories.

Example:
 <ul> 
<li><a href="/home">Home</a></li> 
<li><a href="/about">About Us</a></li> 
<li><a href="/contact">Contact</a></li> 
</ul> 

This will render a bulleted list of links to different pages.

Keyword 3, Keyword 2 & Keyword 1 Geo 1, Geo 2 & Geo 3

Keyword 1 in Geo 1 | Keyword 3 Geo 2 | Keyword 2 Geo 3

Keyword 2Keyword 1Keyword 3 ∴ Geo 3 ∴ Geo 2 ∴ Geo 1