HTML Tags Tutor
Unordered List Tag
The unordered list tag is used to create lists on a web page. The code shown here produces the bulleted list on the right.
|
|
|
Lesson stepsClick the <> button to enter your code Type or paste the code shown here for an unordered list in the editor window: |
Change List StyleClick the <> button to return to the code. Add the inline style code to the opening list tag as shown in red: |
Change List StyleClick the <> button to return to the code. Change the style code of the opening list tag as shown in red: |
Set the FontClick the <> button to return to the code. Change the style code of the opening list tag as shown in red: |
Add ColorClick the <> button to return to the code. Change the style code of the opening list tag as shown in red: |
Lesson Notes
The unordered list tag will work if you forget the closing list item tags. For W3C compliance you should include them.
When adding inline style declarations, use a semi colon to separate them. If these same declarations were defined in the head section using the style tag the code would look like this:
<head>
<style type="text/css">
ul {
list-style: square
}
li {
font-family: verdana;
color: #00cc00
}
<style>
</head>

