Home > Web Front-end > HTML Tutorial > Set starting value of ordered list in HTML?

Set starting value of ordered list in HTML?

王林
Release: 2023-09-04 21:45:07
forward
1529 people have browsed it

Set starting value of ordered list in HTML?

Use the start attribute to set the starting value of the ordered list in HTML, that is:

<ol start = " ">
Copy after login

Add what you want above The value of the position to start from.

Example

You can try running the following code to implement the start property -

<!DOCTYPE html>
<html>
   <head>
      <title>HTML ol Tag</title>
   </head>
   <body>
      <p>Programming Languages Rank Usage:</p>
      <ol start = "5">
         <li>Java</li>
         <li>C++</li>
         <li>C</li>
      </ol>
   </body>
</html>
Copy after login

The above is the detailed content of Set starting value of ordered list in HTML?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:tutorialspoint.com
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