Lists

When using HTML you can display three different kinds of lists. They are Unordered, Ordered and Definition lists.

The Code for an Unordered List:

<ul type="disc"> <li>Square <li>Pentagon <li>Octagon </ul>
  • Square
  • Pentagon
  • Octagon

The Code for an Ordered List:

<ol type="1" start="1"> <li>Square <li>Pentagon <li>Octagon </ol>
  1. Square
  2. Pentagon
  3. Octagon

The Code for a Definition List:

<dl> <dt>Square <dd>Object with four corners. <dt>Pentagon <dd>Object with five corners. <dt>Octagon <dd>Object with eight corners. </dl>
Square
Object with four corners.
Pentagon
Object with five corners.
Octagon
Object with eight corners.

BACK Untitled