HTML List - HTML Font - HTML Headings

HTML List

/ins>

HTML List

HTMLlist is used to display some content in ordered manner or unordered manner.

Ordered List

Ordered list is the list which is used to make a list in an ordered manner.

The syntax of ordered list is :

Output

  1. HTML
  2. CSS
  3. JS

in the above example
we write html, css, js in three <li>tags appear inside the <ol>tag.
run at browser output is in sequential numbered.


Ordered List Start property

You can use ol Start property If you want to start an ordered list with 100 then set start = 100.

Output

  1. HTML
  2. CSS
  3. JS

in the above example..
here we define property “start” of <ol> tag. set the start (value=100).
then the output is start with sequence number 100.


Ordered list type Property.

if you want to start an ordered list with uppercase(letters) then set type =”A”.

Order List type can set type=”a”, type=”A”, type=”i” and type=”1″.

Output

  1. HTML
  2. CSS
  3. JS

In the above example
Here we define 3 individual list in <li> tags,with set( type=”a”)
then the output of three list in uppercase letter.


Unordered List

Unordered list is the list which is used to make a list in an unordered manner.

Output

  • book1
  • book2
  • book3

In the above example.
three individual tag list are define inside the <ul> tag.
and the output is bullet-ed list of items.


Unordered list type Property.

The Unordered list items are marked with bullets. Unordered list type can set type=”circle”, type=”square” and type=”disc”.

Output

  • book1
  • book2
  • book3

In the above example
here a property(style) with value(Square/circle/disc).
and the output is in defined style value billeted list.


Definition List

Definition list containing groups of terms and their definitions.

Output

Books
HTML
CSS
JS