HTML ol li item tags

 HTML <ol> is a sorted item tag. The <ul> and <li> tags are combined to form a tag group. Before each item, there will be a preset numerical order. The initial order starts from 1. If no numerical order is required Effect, you can use: HTML ul li project tag . HTML <ol> tags support standard attributes such as id, class, title, style, dir, lang, xml, etc. All mainstream browsers support HTML <ol><li> tag writing with sorted items.


HTML <ol><li> basic syntax
<ol>
 <li></li>
 <li></li>
 <li></li>
 ...
</ol>
The HTML <ol></ol> tag group starts with an <ol> and ends with an </ol>, and contains multiple groups of <li></li> item tags, which becomes a standard sorted tag group. Each item can be used to display text lists or hyperlink lists, etc.

HTML <ol><li> Item tag example 1. Basic model
<ol>
 <li>Monday</li>
 <li>Tuesday</li>
 <li>Wednesday</li>
</ol>
The output of the above example (compare: HTML ul li project tag )
  1. Monday
  2. Tuesday
  3. Wednesday
From the example, you can see that there are three items between <ol> and </ol>, which are wrapped by <li> and </li> respectively. Each item in the result is presented with a sorting number, and this number starts from 1. For sorting, in principle, there can be no array of <li></li> items between <ol></ol>, and in addition to text, each item can also be set with hyperlink effects or other HTML effects.

HTML <ol><li> Item tag example 2: Add hyperlink
<ol>
 <li><a href="https://jasonchen050319.blogspot.com/" target="_blank">Jason SEO</a></li>
 <li><a href="https://jasonchen050319.blogspot.com/search/label/HTML%20Basic?&max-results=6" target="_blank">HTML Basic</a>-Jason SEO</li>
</ol>
The output of the above exampleWe add HTML hyperlink tags to each <li></li> text in the example to create a hyperlink effect. The entire string can be a hyperlink, or only a few words can be a hyperlink.

Post a Comment

0 Comments