HTML – Number lines?
With the following HTML codes I can create 3 lines (1) one below the other + (2) indented + (3) at the front with a dot on my homepage.
—————————————————
<ul style="padding-left: 1.2em;">
<li>1st line
<li>2nd line
<li>3rd line
</ul>
—————————————————
But I don't want a period before each line, but rather the lines numbered from 1 to 3. What should I write instead of <li>?
You have to order them for that.
Numbered lists are introduced with
and terminated with
.
List entries are started with
.
It worked. Thank you!
You need to use
and not
if you want ordered list instead of unnumbered list
https://www.w3schools.com/html/html_lists.asp
Instead, you use
point
for a s.g. ordered list.