Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

HTML unordered list tag

HTML Unordered List Tag

Definition of HTML
    tag

HTML

    tag
is used to show information in the form of a list. This display list with no special order. We can call this list as a bulleted list.


The table of content showing the list of headings I am using to explain HTML Unordered list tag.

Table of Content

  1. Syntax
  2. Multiple Unordered list
  3. List of type attribute options
    • square
    • disc
    • circle
  4. Resources and References

Syntax

  • Enter list content.
  • ....

It includes HTML list tag to show listings. There can be multiple

  • tags
  • in the
      tag
    .

    If you want to show information in the form of lists and want to use the numbers at the start in each list item. You can use

      . We can call this list as Numbered list.

      List of Games:

      • Football
      • Cricket
      • Table Tennis
      • Badminton
      • Basketball
      • Baseball

      Output

      List of Games:

      • Football
      • Cricket
      • Table Tennis
      • Badminton
      • Basketball
      • Baseball

      Multiple unordered list(
        inside
          )

      You can use multiple

        inside the unordered list. To use multiple unordered list, use
          tag inside
        • tag. To explain this, see the example below:

      List of Games:

      • Indoor Games
        • Chess
        • Ludo
        • Video games
      • Outdoor Games
        • Cricket
        • Badminton
        • Football

      Output

      List of Games:

      • Indoor Games
        • Chess
        • Ludo
        • Video games
      • Outdoor Games
        • Cricket
        • Badminton
        • Football

      This contains the multiple stage unordered lists. First list contains the list of Indoor games chess, Ludo and video games. The second list contains the list of outdoor games.


      List of type attribute options

      Show different list styles using the type attribute.

      Sr. No. Type Attribute options Description
      1 square Used to show square shape bulleted unordered list.
      2 disc Used to show disc shape bulleted unordered list.
      3 circle Used to show circle shape bulleted unordered list.

      Unordered list with type=”square”

      It is used to show the square Shape Bulleted HTML unordered list. The list contains the dots which are square in shape.

      List of Countries:

      • United States
      • China
      • united Kingdom
      • Australia

      Output

      List of Countries:

      • United States
      • China
      • united Kingdom
      • Australia

      This contains the list of countries. You can also list out the square shaped list with the CSS list style property. Specify the value as ‘square’. This converts the bullets to square shape.


      unordered List with type=”disc”

      It is used to show disc Shape Bulleted Unordered list. The dots are also applicable to the internal lists.

      List of Fruits:

      • Apple
      • Banana
      • Grapes
      • Orange

      Output

      List of Fruits:

      • Apple
      • Banana
      • Grapes
      • Orange

      unordered List with type=”circle”

      It is used to show circle shape bulleted list.

      List of Movies:

      • Resident Evil
      • Titanic
      • Jurassic Park
      • Beauty and the Beast

      Output

      List of Movies:

      • Resident Evil
      • Titanic
      • Jurassic Park
      • Beauty and the Beast

      Resources and References

      1. W3C Specification.
      2. HTML living standard
      3. W3C project using Github


      PDF Version

      The post HTML unordered list tag appeared first on Tutorialdeep.



      This post first appeared on Tutorialdeep - An Online Web Development And Blogging Tutorial, please read the originial post: here

      Share the post

      HTML unordered list tag

      ×

      Subscribe to Tutorialdeep - An Online Web Development And Blogging Tutorial

      Get updates delivered right to your inbox!

      Thank you for your subscription

      ×