Day 2: Unordered HTML List : Disc, Circle, Square, None

 

Unordered HTML List : 

  • HTML Unordered List(Bulleted List) displays text in bulleted format . We can use an unordered list wherever we don't have to show things in any specific order.     
  • The ul tag is used for creating an unordered list.       
  • There are often four styles of bulleted list:       
  •   Disc
  • Code to apply the disc shaped bulleted list :

<ul style="list-style-type:disc;"> 

  <li>HTML</li> 

  <li>CSS</li> 

  <li>Javascript</li> 

</ul>

     

      • Circle
      • Code to apply the circle shaped bulleted list :

      <ul style="list-style-type:circle;"> 

        <li>HTML</li> 

        <li>CSS</li> 

        <li>Javascript</li> 

      </ul>

         

          • Square 
          • Code to apply the square shaped bulleted list :

          <ul style="list-style-type:square;"> 

            <li>HTML</li> 

            <li>CSS</li> 

            <li>Javascript</li> 

          </ul> 

           

          • None
          • Code to remove shapes :

          <ul style="list-style-type:none;"> 

            <li>HTML</li> 

            <li>CSS</li> 

            <li>Javascript</li> 

          </ul>

           

          • When a list is created inside another list, it is called Nested list/sublist.   
          • In nested lists, the sublist is written as a child of list item.  

          Comments

          Popular posts from this blog

          else-if condition in if-else statements: Concatenation in JavaScript :

          Day 9: CSS - Font Formate

          Day 28: CSS Animation, CSS Transition Animation Box size