How to make a list with numbers in HTML?

by cruz.howell , in category: HTML/CSS , 2 years ago

How to make a list with numbers in HTML?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by eda.wolff , 2 years ago

@cruz.howell You can use <ol> HTML tag to make a list with numbers in HTML, code:


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<!DOCTYPE html>
<html lang="en">
<head>
    <title>How to make a list with numbers in HTML?</title>
    <meta charset="UTF-8"/>
</head>
<body>
<ol>
    <li>Item #1</li>
    <li>Item #2</li>
    <li>Item #3</li>
</ol>
</body>
</html>


Member

by eulalia , 2 years ago

@cruz.howell  To make a list with numbers in HTML use  the <ol> tag