li html element code example
Example 1: html elements list
The basic elements of an HTML page are:
A text header, denoted using the <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.
A paragraph, denoted using the <p> tag.
A horizontal ruler, denoted using the <hr> tag.
A link, denoted using the <a> (anchor) tag.
A list, denoted using the <ul> (unordered list), <ol> (ordered list) and <li> (list element) tags.
An image, denoted using the <img> tag
A divider, denoted using the <div> tag
A text span, denoted using the <span> tag
Example 2: li html
<ol>
<li>something</li>
<li>something</li>
</ol>
or
<ul>
<li>something</li>
<li>something</li>
<li>something</li>
</ul>
Example 3: about ul and li tag
The <ul> tag defines an unordered (bulleted) list. Use the <ul> tag together with the <li> tag to create unordered lists
Example 4: ui and li in html
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>