Home > Web Front-end > HTML Tutorial > What is the ol tag?

What is the ol tag?

云罗郡主
Release: 2019-02-15 11:31:11
Original
15656 people have browsed it

What is the ol tag?

The Ol tag represents an HTML ordered list. The Ol tag appears in pairs, starting with

    and ending with
. Each column uses tag defines content.

Function: Define an ordered list.

Note: In HTML 4.01, the "compact", "start" and "type" attributes of the ol element are deprecated. In XHTML 1.0 Strict DTD, the "compact", "start" and "type" attributes of the ol element are not supported.

Note: Please use CSS to define the type of the list.

html ol tag example

<!DOCTYPE html>
<html>
<body>
<ol>
  <li>咖啡</li>
  <li>牛奶</li>
  <li>茶</li>
</ol>
<ol start="50">
  <li>咖啡</li>
  <li>牛奶</li>
  <li>茶</li>
</ol>
 
</body>
</html>
Copy after login


The above is the detailed content of What is the ol tag?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template