In html we display the information in shape of list for example if we want to display the name of subject:
1 Math
2 Computer
3 English
HTML offers several mechanisms for specifying lists of information. All lists must contain one or more list elements. Lists may contain:
Unordered List.
Ordered List.
Definitions List.
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag. An unordered list typically created with bulleted. You can also customize the bullets and to wrap list items horizontally or vertically for multicolumn lists.
The opening list tag must be <UL>. It is followed by an optional list header (<LH>caption</LH>) and then by the first list item (<LI>). For example:
which could be rendered as:
Subject Name
We can also pass argument for example
<ol type=" disc | square | circle ">
Note : - The "type" attributes are not supported in HTML5.
This could be rendered as:
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
The list items are marked with numbers.
- Math
- Computer
- English
The above code display the follwoing Result:
We can also pass argument for example
<ol type="1|a|A|i|I">
HTML definition lists display the terms and there definition. The definition list created with <dl> tag.
<dl> - This is start of List
<dt> - Definition term
<dd> - Definition of the list item
You can bold the list item with <b> tag.
Example of HTML Definition List
The result of above code is:
HTML Forms
HTML DECIMAL Color Code and HEX Color Code
HTML Nested Lists
Elements and Tags In HTML
4 Primary Tags In HTML
Create Your First Web Page in HTML
Attributes in HTML Tags
HTML DOCTYPE Declaration
HEAD Tag in HTML
Meta Tags in HTML
Body Tag in HTML
H1 to H6 HTML Elements
Basic HTML Elements
HTML Table Element
Basefont HTML Element
Formatting Element in HTML
Font Element In HTML
Style Element in HTML
CSS Properties
DIV in HTML Document
List in HTML
Creating Menus With HTML list
Creating Horizontal Menu With HTML list
HTML Image Tag
Hyperlinks In HTML