Learn Basic HTML Complete Course part 14

1 min read

HTML Unordered List | HTML 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:

  • disc
  • circle
  • square
  • none

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


TypeDescription
Type "disc"This is the default style. In this style, the list items are marked with bullets.
Type "circle"In this style, the list items are marked with circles.
Type "square"In this style, the list items are marked with squares.
Type "none"In this style, the list items are not marked .

Example

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<h4>Unorder list of type="none"</h4>
<ul type="none"> 
<li>HTML</li> 
<li>Java</li> 
<li>JavaScript</li> 
<li>SQL</li> 
</ul><hr> 

<h4>Unorder list of default type</h4>
<ul> 
<li>HTML</li> 
<li>Java</li> 
<li>JavaScript</li> 
<li>SQL</li> 
</ul><hr> 

<h4>Unorder list of type="square"</h4>
<ul type="square"> 
<li>HTML</li> 
<li>Java</li> 
<li>JavaScript</li> 
<li>SQL</li> 
</ul><hr> 

<h4>Unorder list of type="circle"</h4>
<ul type="circle"> 
<li>HTML</li> 
<li>Java</li> 
<li>JavaScript</li> 
<li>SQL</li> 
</ul> 
</body>
</html>


Output:

Unorder list of type="none"

  • HTML
  • Java
  • JavaScript
  • SQL

Unorder list of default type

  • HTML
  • Java
  • JavaScript
  • SQL

Unorder list of type="square"

  • HTML
  • Java
  • JavaScript
  • SQL

Unorder list of type="circle"

  • HTML
  • Java
  • JavaScript
  • SQL


You may like these posts

  • HTML HeadThe HTML <head> element is used as a container for metadata (data about data). It is used between <html> tag and <body> tag.The head of an HTML document …
  • HTML HeadingA HTML heading or HTML h tag can be defined as a title or a subtitle which you want to display on the webpage. When you place the text within the heading tags <h1>…
  • HTML TableHTML table tag is used to display data in tabular form (row * column). There can be many columns in a row.We can create a table to display data in tabular form, using <…
  • HTML CommentsComments are some text or code written in your code to give an explanation about the code, and not visible to the user. Comments which are used for HTML file are known…
  • HTML File PathsAn HTML file fileName is used to describe the location of a file in a website folder. File paths are like an address of file for a web browser. We can link any exter…
  • HTML Id AttributeThe id attribute refers to a unique value for an HTML element. This HTML id value can be used with CSS and JavaScript to perform certain task.HTML id with CSSIn CS…

Post a Comment