HTML Unordered List

Eduaction Management 959 Lahore

Code With Jahangir 

HTML Unordered List

FREE COURSES 

FREE CERTIFICATE

HTML Unordered List

 

Syntax:

<ul>
// list items
</ul>

 

  • Unordered lists have no sequence.
  • They are more like bullet points. 
  • They are created by using <ul> tag.
  • <ul> tag has its corresponding </ul> tag.
  • For items, we use <li> tag also known as the List Item tag.

 

For a more clear picture, let's go through this example:

<ul>
<li>Pen</li>
<li>Pencil</li>
<li>Eraser</li>
</ul>

 

Output:

  • Pen
  • Pencil
  • Eraser

 

Setting type attribute:

Type attribute -> used to specify the type of bullet. 

There are three types of bullets:

  • disc
  • square
  • circle

Eduaction Management 959 Lahore

Code With Jahangir 

HTML Unordered List

FREE COURSES 

FREE CERTIFICATE

Previous Post Next Post

Contact Form