

























Today, I found out a neat HTML trick, and just want to write it down.
Let's say you're making an ordered list, and want the first two items to start 1, 2. Then, for some reason, you want to jump to 5. This HTML will do just that:
<ol>
<li>One</li>
<li>Two</li>
<li value="5">Five</li>
</ol>
Note that subsequent <li> 's will start iterating from that new value.
<ol>
<li>One</li>
<li>Two</li>
<li value="5">Five</li>
<li>Six</li>
<ol>
See the Pen HTML OL's by Chip Cullen (@chipcullen) on CodePen.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。