Home > Web Front-end > HTML Tutorial > Detailed explanation of the new attributes start and reversed of the ol tag in HTML5

Detailed explanation of the new attributes start and reversed of the ol tag in HTML5

黄舟
Release: 2017-06-30 14:12:36
Original
2424 people have browsed it

Normal ol

<ol>
      <li>html</li>
      <li>css</li>
      <li>html5</li>
      <li>css3</li>
      <li>jquery</li>
</ol>
Copy after login

Display the results:

Use the start attribute

<ol start="5">
      <li>html</li>
      <li>css</li>
      <li>html5</li>
      <li>css3</li>
      <li>jquery</li>
</ol>
Copy after login

Display the results:

#As you can see, start can change the starting number of the ordered list!

Use the reversed attribute

<ol start="5" reversed="reversed">
      <li>html</li>
      <li>css</li>
      <li>html5</li>
      <li>css3</li>
      <li>jquery</li>
</ol>
Copy after login

Display the results:

As you can see, reversed makes it sort in reverse order.

The above is the detailed content of Detailed explanation of the new attributes start and reversed of the ol tag in HTML5. 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