You can use this HTML tutorial to learn the basics of this widely used mark-up language. This part of the web design tutorial shows you how to create lists on your web pages.
Lists are commonly used throughout most websites -- they're easy to create.
Once you know how to structure the different lists it'll be like second nature to you in a very short time!
Learn how to use these HTML tags to increase your ability to create your web pages with this guide.
How To Create An HTML List Creating lists for your web pages is not difficult. The three most familiar lists that you will structure are the unordered list, the ordered list, and definition lists.
An unordered list, also known as a bulleted list, is one where the order of the items doesn't matter -- such as a grocery list. Usually each item has a bullet point like this one...
Unordered List The entire unordered list is bounded by <ul>and </ul> tags -- (ul means unordered list).
Each item within your list, usually a phrase or word, is bounded by <li>and </li> tags -- (li defines a list item).
Typically each item appears in an indented form with a bullet point in front of it. These tags are signal to the browser to display an unordered list. The order of this type of list is not important
Here's how we make a list of a several grocery items...
Here's how the web browser displays our HTML ordered list...
Tip: You can begin your list with a number or letter other than the first one by inserting a start value attribute in the ol tag like this...
<ol start=5>.
Definition List The definition list is bounded by <dl>and </dl> tags -- (dl indicates a definition list).
Instead of using <li>, (item list), as we did in the other list types we will use the <dd>and </dd> tags -- (dt this means definition terms).
Underneath each definition term we will list one or more definitions as defined by the <dd>and </dd>tags -- (dd simply means a definition within a definition term).
This HTML tutorial section shows you a list of grouped items...
This is how the web browser displays the HTML definition list...
You’ve also learned how create a few simple lists in this HTML tutorial section. Experiment on your own -- you'll be surprised how easy it is to create lists for your web pages.