| Be My Friend

Previous

Next


HTML Lists

Lists | Ordered Lists | Type Attributes | Unordered Lists | Description Lists

In HTML you have an option to create lists with the help of the HTML Lists tag.

In HTML we have three types of lists.

  • <ol> An ordered list Or Numbered List
  • <ul> An Unordered list Or Bulleted List
  • <dl> A Description List Or Defination list

HTML Ordered Lists

In the HTML Ordered lists, by default, all the items in the list are marked with numbers and it also called a numbered list in HTML.

The ordered list starts with <ol> tag and the list items start with <li> tag.

Example



The Type Attribute

You can use the type attribute for the <ol> tag to specify the type of the list items.

Type Description
Type "1"The list items will be numbered with numbers (default)
Type "I"The list items are numbered with upper case roman numbers.
Type "i"The list items are numbered with lower case roman numbers.
Type "A"The list items are numbered with upper case letters.
Type "a"The list items are numbered with lower case letters.

Following is an example where we used <ol type="I">



HTML Unordered Lists

In the HTML Unordered lists, all the items in the list are marked with bullets.

The Unordered list starts with <ul> tag and the list items start with <li> tag.

Example



HTML Description Lists

HTML Description List is also known as Definition List and HTML definition list contains following three tags

  • <dl>tag defines the description list.
  • <dt>tag defines the term.
  • <dd>tag defines the description.

Example



IF YOU LIKE OUR HTML TUTORIALS PLEASE DON'T FORGET TO SHARE

Subscribe for more videos on our Youtube channel. if you like our tutorial please Like and Subscribe to our Facebook and Youtube.



Previous

Next



YOUR COMMENTS ARE MOST IMPORTANT TO US:

0 Comments



Why basictutorials.in?

To Learn:

Tutorials in a simple Way.

Excel with downloadable samples.

HTML with sample website code.

PowerPoint presentations.

MS Word for offical use.

Useful Tutorials