Creating
Bulleted and Numbered Lists
The tag for a
numbered list is <ol>, which stands for ordered list. For a bulleted
list, the tag is <ul>, which stands for unordered list. Each numbered or
bulleted item within the
list is
tagged <li>, for list item. You start the list with the opening
<ol> or <ul> tag, enclose each list item with <li> and
</li> tags, and then end the list with the closing </ol> or
</ul> tag. Here’s the numbered list from the previous example, this time
using the proper tags.
Unordered
list:
Coding:
<! Doctype
html>
<html>
<body>
<ul>
<li>Bring
in the mail</li>
<li>Take
out the trash</li>
<li>Feed
the dogs</li>
<li>Stop
the newspaper delivery</li>
</ul>
</body>
</html>
Output:
Ordered
list:
Coding:
<! Doctype
html>
<html>
<body>
<ol>
<li>Click
in the Login box</li>
<li>Type
<b>premium</b></li>
<li>Click
in the Password box</li>
<li>Type
<b>customer</b></li>
</ol>
</body>
</html>
Output:


0 Comments