HTML-program 14
Posted On Wednesday, May 20, 2009 at at 1:29 AM by RashedProgram 14:
<html>
<head>
<title>This is my first webpage</title>
</head>
<body>
<ol>
<li>book</li>
<li>khata</li>
<li>pen</li>
<li>pencil</li>
</ol>
<ul>
<li>book</li>
<li>khata</li>
<li>pen</li>
<li>pencil</li>
</ul>
<ol start="6">
<li>book</li>
<li>khata</li>
<li>pen</li>
<li>pencil</li>
</ol>
<ol type="a">
<li>book</li>
<li>khata</li>
<li>pen</li>
<li>pencil</li>
</ol>
<ol type="1">
<li>book</li>
<li>khata</li>
<li>pen</li>
<li>pencil</li>
</ol>
<ol type="a">
<li>book</li>
<ol type="1"><li>Bangla</li>
<li>English</li>
<li>Math</li></ol>
<li>khata</li>
<li>pen</li>
<li>pencil</li>
</ol>
<ul>
<li>Book</li>
<ol><li>Bangla</li>
<li>English</li>
<li>Math</li>
</ol>
<li>Khata</li>
<li>pen</li>
<li>pencil</li>
</ul>
</body>
</html>
- Explanation:
- To create order list <ol> is used. For each list <li> is used. List is closed with </li>. To close Order list </ol> is used.
- For Unorder list <ul> is used. For each list <li> is used. List is closed with </li>. To close Unorder list </ul> is used.
- Order list may be embeded within unorder list and vice versa.
- To make unorder list some other tag may be used as:
<menu>
<li>...</li>
<li>...</li>
</menu>
- or
<dir>
<li>.....</li>
<li>.......</li>
</dir>
- It will look like:
- book
- khata
- pen
- pencil
- book
- khata
- pen
- pencil
- book
- khata
- pen
- pencil
- book
- khata
- pen
- pencil
- book
- khata
- pen
- pencil
- book
- Bangla
- English
- Math
- khata
- pen
- pencil
- Book
- Bangla
- English
- Math
- Khata
- pen
- pencil