Friday, September 17, 2021

HTML 101: List

 Lists are used to group together various pieces of information so they can be easily read and associated with each other. They are also useful for navigation and content creation.


There are three main types of list in HTML:

  1. description list — used to display name/value pairs such as terms and definitions
  2. ordered list — used to group a set of related items in a specific order
  3. unordered list — used to group a set of related items in no particular order

  • Description list is the list popular from all.

The syntax is:

         <dl>

                <dt>Name</dt>

                <dd>Value</dd>

                <dt>Name</dt>

               <dd>Value</dd>

               <dt>Name</dt>

              <dd>Value</dd>

       </dl>


  • Ordered list:
               <ol>

                       <li>value</li>

                       <li>value</li>

                      <li>value</li>

              </ol>


  • Unordered list
                <ul>

                       <li>value</li>

                       <li>value</li>

                      <li>value</li>

              </ul>



No comments:

Post a Comment

HTML 101: Form

  I believe that everyone who has made use of the internet knows what a form is but in case you don't know, a form is a way of receiving...