| | | |
|---|
Comments, Questions, Suggestions, or Opinions Tutorials Lesson:
Exercises For every lesson:
My accounts:
|
The most common HTML lists are ordered and unordered lists: HTML Lists
HTML Unordered ListsAn unordered list starts with the <ul> tag. Each list item starts with the <li> tag. The list items are marked with bullets (typically small black circles).
<ul> <li>Coffee</li> <li>Milk</li> </ul> How the HTML code above looks in a browser:
HTML Ordered ListsAn ordered list starts with the <ol> tag. Each list item starts with the <li> tag. The list items are marked with numbers.
<ol> <li>Coffee</li> <li>Milk</li> </ol> How the HTML code above looks in a browser:
HTML Description ListsA description list is a list of terms/names, with a description of each term/name. The <dl> tag defines a description list. The <dl> tag is used in conjunction with <dt> (defines terms/names) and <dd> (describes each term/name):
<dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl> How the HTML code above looks in a browser:
Basic Notes - Useful TipsTip: Inside a list item you can put text, line breaks, images, links, other lists, etc. HTML List Tags
Click here to take the exercises of this lesson -->
|