TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML Unordered List | HTML Bulleted List

HTML Unordered List or HTML Bulleted Lists with examples, html ordered list, html unordered list, html description list, forms, input, text, anchor, image, heading, marquee, textarea, paragraph, title, quotes, code etc.

<< Back to HTML

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 .

HTML Unordered List Example

<ul>
 <li>HTML</li>
 <li>Java</li>
 <li>JavaScript</li>
 <li>SQL</li>
</ul>
Test it Now

Output:

  • HTML
  • Java
  • JavaScript
  • SQL

ul type="circle"

<ul type="circle">
 <li>HTML</li>
 <li>Java</li>
 <li>JavaScript</li>
 <li>SQL</li>
</ul>
Test it Now

Output:

  • HTML
  • Java
  • JavaScript
  • SQL

ul type="square"

<ul type="square">
 <li>HTML</li>
 <li>Java</li>
 <li>JavaScript</li>
 <li>SQL</li>
</ul>
Test it Now

Output:

  • HTML
  • Java
  • JavaScript
  • SQL

ul type="none"

<ul type="none">
 <li>HTML</li>
 <li>Java</li>
 <li>JavaScript</li>
 <li>SQL</li>
</ul>
Test it Now

Output:

  • HTML
  • Java
  • JavaScript
  • SQL

Note: The type attribute is not supported in HTML5, instead of type you can use CSS property of list-style-type. Following is the example to show the CSS property for ul tag.

<ul style="list-style-type: square;">
	<li>HTML</li>
	<li>Java</li>
	<li>JavaScript</li>
	<li>SQL</li>
  </ul>

Code:

<!DOCTYPE html>
<html>
 <head>
  </head>
 <body>
 <h2>The type attribute with CSS property</h2>
   <ul style="list-style-type: square;">
	<li>HTML</li>
	 <li>Java</li>
           <li>JavaScript</li>
           <li>SQL</li>
    </ul>
 </body>
</html>	
Test it Now

Output:

HTML Unordered List | HTML Bulleted List

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<ul>YesYesYesYesYes
Next TopicHTML var Tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf