Html unorderedlist

 

HTML Unordered List or Bulleted List

HTML Unordered List or Bulleted List displays elements in bulleted format . We can use unordered list where we do not need to display items in any particular order. The HTML ul tag is used for the unordered list. There can be 4 types of bulleted list:

  1. disc
  2. circle
  3. square
  4. none

To represent different ordered lists, there are 4 types of attributes in <ul> tag.

HTML Unordered List Example

ul type="circle"

  1. <ul type="circle">  
  2.  <li>HTML</li>  
  3.  <li>Java</li>  
  4.  <li>JavaScript</li>  
  5.  <li>SQL</li>  
  6. </ul>  

Output:

  • HTML
  • Java
  • JavaScript
  • SQL

ul type="square"

  1. <ul type="square">  
  2.  <li>HTML</li>  
  3.  <li>Java</li>  
  4.  <li>JavaScript</li>  
  5.  <li>SQL</li>  
  6. </ul>  

Output:

  • HTML
  • Java
  • JavaScript
  • SQL

ul type="none"

  1. <ul type="none">  
  2.  <li>HTML</li>  
  3.  <li>Java</li>  
  4.  <li>JavaScript</li>  
  5.  <li>SQL</li>  
  6. </ul>  

Output:

HTML
Java
JavaScript
SQL
  1. <ul style="list-style-type: square;">  
  2.     <li>HTML</li>  
  3.     <li>Java</li>  
  4.     <li>JavaScript</li>  
  5.     <li>SQL</li>  
  6.   </ul>  

Code:

  1. <!DOCTYPE html>  
  2. <html>  
  3.  <head>  
  4.   </head>  
  5.  <body>  
  6.    <ul style="list-style-type: square;">  
  7.     <li>HTML</li>  
  8.      <li>Java</li>  
  9.            <li>JavaScript</li>  
  10.            <li>SQL</li>  
  11.     </ul>  
  12.  </body>  
  13. </html>     

Output:

HTML Unordered List | HTML Bulleted List


Comments

Popular posts from this blog