Creating ListsYou can create several different types of lists in your HTML document.This is a very easy task and the only thing you'll have to remember is which tags make your list appear the way you'd like.
Here is a quick tutorial on how to create a list in your web page.
First you'll need to decide what information will be in your list.
Ok, now that you know what you want your list to contain, let's see how to set it up.
The first step in creating a list is deciding the type of list you want.
Ok, now that you know what type of list you want, I'll show you how to make it happen. Example 1Ordered ListsFirst you need to specify an ordered list.You do so by using the <OL> tag.
Then you'll need to specify each item in the list. And finally, you'll need to specify the end of the list with the </OL>: tag. Here's how the code would look in your HTML document.
<ol> Here's how the code above will display the list.
Example 2Unordered ListsThis list is exactly the same as the ordered list except that the opening and closing tags are changed to <UL> and </UL>Here is the same list as above.
<ul> Here's how it will be displayed.
Example 3Definition listsThis list is a little different. Each Item will actually have two lines attributed to it.The first line is the Item, and the second line will be the definition.
To start the definition list, you'll use the <DL> tag. Here's how the list above would look as a definition list.
<dl> And, here's how it is displayed.
And there you have three different ways to display the same list. Choose another tutorial by clicking one of the links below. |