Lists part 1

HTML Fundamentals
HTML Basics
Lists
67
1/2
         

HTML Ordered Lists



An ordered list starts with the <ol> tag, and each list item is defined by the <li> tag.
Here is an example of an ordered list:
<html>
<head>
<title>first page</title>
</head>
<body>
<ol>
<li>Red</li>
<li>Blue</li>
<li>Green</li>
</ol>
</body>
</html>
Try It Yourself

Result:
The list items will be automatically marked with numbers.

Comments