USE OF LISTS IN HTML

Similarly to tables, lists are used on websites to arrange information. In HTML, you can make two types of lists:

< ol > and < li > ORDERED LISTS

<ol> and <li> tags define ordered lists. Ordered lists live within the < body > of an HTML document.

<ol> elements tells the browser that an ordered list is about to be developed.

  • are all of the items you want listed.

    As you can see to the right, this code allows the items you list to be named in chronological order.

    < ul > and < li > UNORDERED LISTS

    <ul> and <li> tags define unordered lists. Unordered lists live within the < body > of an HTML document.

    <ul> elements tells the HTML page that an unordered list is about to be developed.

  • are all of the items you want listed.
  • As you can see to the right, this code allows the items you list to be named in bullet point format.