The Basics of HTML
List Tags
Here is how you get bullet points next to your words:
Here is an example of bullet points in HTML code:
<ul>
<li>red</li>
<li>blue</li>
<li>pink</li>
<li>green</li>
<li>purple</li>
</ul>
And this is what it looks like on the page:
- red
- blue
- pink
- green
- purple
Here is how you make a simple Definition List:
Here is an example of a Definition List in HTML code:
<dl>
<dt>Pavement
<dd>Something used for paths for people to walk on.
<dt>Incredible
<dd>Hard to believe.
<dt>Dangerous
<dd>A possible cause of harm or injury.
</dl>
And this is what it looks like on the page:
- Pavement
- Something used for paths for people to walk on.
- Incredible
- Hard to believe.
- Dangerous
- A possible cause of harm or injury.
Today's assignment is to create a couple of lists on your page.
On your first list, write 5 of your favourite things down next to 5 bullet points.
On the second, again write your five favourite things, but this time write them in the Definition List format and write why you like them.
Click Here for the answer.
View The Basics of HTML Discussion
Page: 1 2 3 4 5 6 7 8 9 Next Page: TablesReprinted from http://www.webmaster-resources101.com