Certainly! Here's a simple HTML code snippet that creates an ordered list:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ordered List Example</title>
</head>
<body>
<h1>My Ordered List</h1>
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
<li>Fourth item</li>
<li>Fifth item</li>
</ol>
</body>
</html>
```
This code will display an ordered list with five items, each numbered from 1 to 5. You can add more items by adding more `<li>` elements within the `<ol>` tag.
No comments:
Post a Comment