There are two basic ways to create a list of items. You can create an ordered list, which numbers each item, or you can create an unordered list, in which the items are not numbered.
To create an ordered list, first put an <ol> tag at the beginning of the first item of your list, or at the end of the item that immediately precedes your list. Next, put in a <li> tag at the beginning of each item of your list. You should also place a closing </li> tag at the end of each item. Like ending </p> tags, </li> tags are optional, but it is a good practice to include them.
Creating an unordered list follows the same process except you would use an <ul> tag in place of an <ol> tag. Instead of numbers, the unordered list displays bullets next to each item of the list.
After the last item in your list, place a closing tag, </ol> or </ul> accordingly, to indicate the end of the list.
|
<html> <head> <title>HTML, An Introduction</title> </head> <body> <h3>An Introduction to Hypertext Markup Language</h3> <h4>TUTORIAL DESCRIPTION</h4> <p>HTML is the basic language of the World Wide Web. If you are interested in creating webpages, HTML is the first thing you should learn. In this tutorial, you will</p><ul> <li>learn what HTML stands for</li> <li>learn some basic tags</li> <li>see an example of how a webpage would be encoded with HTML</li></ul> <h4>SOME EFFECTS OF HTML TAGS</h4><ol> <li>Making text bold or italicized</li> <li>Changing the size of text</li> <li>Linking one document to another</li> <li>Creating numbered and non-numbered lists</li></ol> <h4>PREREQUISITES</h4> <p>You should have had some experience browsing the web, as well as some general experience with computers. Additionally, you should know how to save and retrieve documents on a computer.</p> <h4>FURTHER READING</h4> <p>There are many other html tutorials listed at Yahoo.</p> </body> </html> |
What would this document look like in a web browser so far?
NEXT: >>