HTML Lists

·

1 min read

HTML Lists

One thing I forgot to write on is HTML lists, and it is something we were taught earlier in the GIT Africa Agility bootcamp6.0. Lists are very important for so many reasons. They can be used to create navbars and more, but first, let us understand the basics.

Types of List

We have the:

Unordered lists

Ordered lists

HTML description lists

Examples of lists and how they can be used

UNORDERED LISTS

<ul>
  <li>Transformers</li>
  <li>Coco</li>
  <li>Shrek</li>
</ul>

Unordered lists list items using bullet points.

ORDERED LISTS

<ol>
  <li>Year 2000</li>
  <li>Year 2005</li>
  <li>Year 2010</li>
</ol>

Ordered lists are used when we wnat to list items by number.

HTML DESCRIPTION LISTS

<dl>
  <dt>HTML</dt>
  <dd>- a markup language</dd>
  <dt>CSS</dt>
  <dd>- sed for styling</dd>
</dl>

Description lists are used to describe items on a list.

References:

#20daysinFrontendwithAA