How to start an ordered list with a number other than one

This week, Marcus Herrmann reminded me of one of my favorite HTML tricks.
If you have an ordered list (ol) and want it to start with a number other than one, you can add the start attribute with the desired first number as its value.
<ol start=”4″> <li>Merlin</li> <li>Ursula</li> <li>Radgast</li> </ol> The example above would start with the number four. Here’s a demo.
This is particularly useful if you have a list split across a few columns and want to keep them consistently numbered.


This content originally appeared on Go Make Things and was authored by Go Make Things

This week, Marcus Herrmann reminded me of one of my favorite HTML tricks.

If you have an ordered list (ol) and want it to start with a number other than one, you can add the start attribute with the desired first number as its value.

<ol start="4">
	<li>Merlin</li>
	<li>Ursula</li>
	<li>Radgast</li>
</ol>

The example above would start with the number four. Here’s a demo.

This is particularly useful if you have a list split across a few columns and want to keep them consistently numbered. Here, the first .column would run from one to three, and the second would go from four to six.

<div class="row">
	<div class="column">
		<ol>
			<li>Neville</li>
			<li>Hermione</li>
			<li>Cedric</li>
		</ol>
	</div>
	<div class="column">
		<ol start="4">
			<li>Merlin</li>
			<li>Ursula</li>
			<li>Radgast</li>
		</ol>
	</div>
</div>


This content originally appeared on Go Make Things and was authored by Go Make Things


Print Share Comment Cite Upload Translate Updates
APA

Go Make Things | Sciencx (2022-06-24T14:30:00+00:00) How to start an ordered list with a number other than one. Retrieved from https://www.scien.cx/2022/06/24/how-to-start-an-ordered-list-with-a-number-other-than-one/

MLA
" » How to start an ordered list with a number other than one." Go Make Things | Sciencx - Friday June 24, 2022, https://www.scien.cx/2022/06/24/how-to-start-an-ordered-list-with-a-number-other-than-one/
HARVARD
Go Make Things | Sciencx Friday June 24, 2022 » How to start an ordered list with a number other than one., viewed ,<https://www.scien.cx/2022/06/24/how-to-start-an-ordered-list-with-a-number-other-than-one/>
VANCOUVER
Go Make Things | Sciencx - » How to start an ordered list with a number other than one. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/06/24/how-to-start-an-ordered-list-with-a-number-other-than-one/
CHICAGO
" » How to start an ordered list with a number other than one." Go Make Things | Sciencx - Accessed . https://www.scien.cx/2022/06/24/how-to-start-an-ordered-list-with-a-number-other-than-one/
IEEE
" » How to start an ordered list with a number other than one." Go Make Things | Sciencx [Online]. Available: https://www.scien.cx/2022/06/24/how-to-start-an-ordered-list-with-a-number-other-than-one/. [Accessed: ]
rf:citation
» How to start an ordered list with a number other than one | Go Make Things | Sciencx | https://www.scien.cx/2022/06/24/how-to-start-an-ordered-list-with-a-number-other-than-one/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.