What is a <ol> tag?

Experience Level: Junior
Tags: HTML

Answer

The <ol> tag:
  • Define numbered list of item.
  • Is connected with <li> tag,
  • Is good to use for example: receipt, or positioning.
Example
<html>
<head>
    ...
</head>
<body>
    <ol>
        <li>Ant</li>
        <li>Bear</li>
        <li>Chimpanzee</li>
    </ol>
</body>
</html>
Related HTML job interview questions
HTML for beginners
HTML for beginners

Are you learning HTML? Try our test we designed to help you progress faster.

Test yourself