SIXTH LESSON OF HTML
<!DOCTYPE html>
<html>
<head>
<title>Sixth Lesson of HTML</title>
</head>
<body>
<h1>Listing in HTML</h1>
<p> HTML provides a very interesting feature of listing. We can create ordered & unordered lists in HTML.
Ordered list gives numbering to object whereas unordered list gives bullets (circles, squares, disc etc.)
Ordered list can be created using [ <ol> ] tag & unordered list can be created using [ <ul> ] tag.
Further listing in both list can be done with the help of [ <li> ] tag.
</p>
For example:
<ul>
<li>SEO</li>
<li>PHP</li>
<li>JAVA</li>
</ul>
[Above example is of Unordered list.]
<ol>
<li>SEO</li>
<li>PHP</li>
<li>JAVA</li>
</ol>
[Above example is of Ordered list.]
</body>
</html>
Now, Few Key points to remember always:
</html>
Now, Few Key points to remember always:
- In unordered list, disc shape is by default.For other shape like circle or square, you have to define the list-style-type.
- In ordered list, numbers are by default. For other type like uppercase or lowercase alphabets or roman numbers, you have to define the list-style-type.