Now let us work on some useful tools,
Lets start with a
list.There are ordered lists and unordered lists.
This is an
ordered list:
1. Red
2. Blue
3. Green
4. Yelolow
This is an
unordered list:
* Red
* Blue
* Green
* yellow
First, we will learn how to build an unordered list.Start with this...
<body>
My favourite colours!</body>
Now Add a pair of unordered list tags.
<body>
My favourite Colours!
<ul>
</ul></body>
Next,Add a list item.
<body>
My favourite colours!
<ul>
<li>Red
</ul></body>
Add a few more...
<body>
My favourite colours!
<ul>
<li>Red
<li>blue
<li>Green
<li>Yellow
</ul></body>
There ya go! you learn so fast!!
Next,How to make an ordered list? Easy! Change the <ul> tag to <ol>.
<body>
My favourite colours!
<ol>
<li>Red
<li>blue
<li>Green
<li>Yellow
</ol>
</body>
Yes its that easy!!
Next we shall learn how to change the Type of an unordered list....<body>
My favourite colours!
<ul type="circle">
<li>Red
<li>blue
<li>Green
<li>Yellow
</ul></body>
Now lets change the type of an ordered list...<body>
My favourite colours!
<ol type="A" >
<li>Red
<li>blue
<li>Green
<li>Yellow
</ol></body>
The following list types are available...
<ol> Ordered List type="1" - numeric: 1,2,3,4... (default)
type="a" - lower alpha: a,b,c,d...
type="A" - upper alpha: A,B,C,D...
type="i" - lower roman: i,ii,iii,iv...
type="I" - upper roman: I,II,III,IV...
<ul> Unordered List * type="disc" (default)
* type="circle"
* type="square"
Another type of list is a
definition list.
Ivy A plant that runs up trees, walls, etc. "Ivy is the symbol of eternal life." The arms of the Town of St. Ives. ar. an Ivy branch overspreading the whole field vert.
Start with this...
<body>
<dl>
</dl></body>
Then add a definition title...
<body>
<dl>
<dt>Ivy
</dl></body>
And then the definition...
<body>
<dl>
<dt>Ivy
<dd> A plant that runs up trees, walls, etc. "Ivy is the symbol of eternal life." The arms of the Town of St. Ives. ar. an Ivy branch overspreading the whole field vert.
</dl></body>
You can make the definition title bold(looks better that way..)
<body>
<dl>
<dt>
>Ivy
<dd> A plant that runs up trees, walls, etc. "Ivy is the symbol of eternal life." The arms of the Town of St. Ives. ar. an Ivy branch overspreading the whole field vert.
</dl>
</body>