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>?

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
4 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
M4RC3LL0
2 years ago

You have to order them for that.

Numbered lists are introduced with

    and terminated with

.

List entries are started with

  • and completed with
  • .

    NackterGerd
    2 years ago

    You need to use

      and not

        if you want ordered list instead of unnumbered list

    https://www.w3schools.com/html/html_lists.asp

    Robin42
    2 years ago

    Instead, you use

      point

    for a s.g. ordered list.