Unordered List
An Unordered List is a collection of item that is not in sequential order. It starts with the <ul> tag and ends with the </ul> tag. Each list item starts with the <li> tag. Each item is marked with the bullet i.e. with the disc or square or circle. By default the tag starts with the disc. It is also called Bulleted list.
Tags of Unordered List
- <ul> </ul>
- <li></li>
Example
Write a program to print the list given below
- pen
- pencil
- book
<html>
<head>
<title>
unordered list
</title>
</head>
<body>
<ul>
<li>pen</li>
<li>pencil</li>
<li>book</li>
</ul>
</body>
</html>
Example of Attributes of <ul> tag with the Type attributes
Write a program to print the list given below
<html>
<head>
<title>
unordered list
</title>
</head>
<body>
<ul start="square">
<li>pen</li>
<li>pencil</li>
<li>book</li>
</ul>
</body>
</html>
<head>
<title>
unordered list
</title>
</head>
<body>
<ul start="square">
<li>pen</li>
<li>pencil</li>
<li>book</li>
</ul>
</body>
</html>
Comments
Post a Comment