Home HTML HTML Lists

HTML Lists

3130
0
HTML Lists

HTML lists tag allows developer to list the set of related items. There are two type of lists:
1. Ordered list
An Ordered list starts with <ol> tag and each item is enclosed within <li> & </li> tag. The list is marked with numbers by default.

2. Unordered list
An Unordered list starts with <ul> tag and each item is enclosed within <li> & </li> tag. The list is marked with bullet points i.e. small circles.

Tag Description
<ul> Defines an unordered list
<ol> Defines an ordered list
<li> Defines a list item
<dl> Defines a description list
<dt> Defines a term in a description list
<dd> Describes the term in a description list

<html>
<head>
<title>HTML List</title>
</head>
<body>
<b>Shapes</b>
<ol type=”I”>
<li>Circle</li>
<li>Square</li>
<li>Triangle</li>
<li>Rectangle</li>
</ol>
<b>Programming languages</b>
<ul type=”square”>
<li>C</li>
<li>CPP</li>
<li>Python</li>
<li>Go</li>
</ul>
</body>
</html>

If you like the post HTML Lists, please share your feedback!

also see

C Programming language
Go Programming language
Linked List Array
Simplification Queue
DBMS Reasoning
Aptitude HTML

 

Previous articleHTML Styles
Next articleCircular Linked List

LEAVE A REPLY

Please enter your comment!
Please enter your name here