Order List-Html

March 7, 2009 at 6:04 am | In Ultimate Concepts-Html | Leave a Comment
Tags: , , , , ,

Today i’m going to tell you that how one can put various lists (ordered and unordered) in the Html.

Tag Names- <ol>, <ul>

Description- where the “ol”-stands for order lists and “ul”-stands for unorder lists.

The attributes which come up with <ol> tag are:-

  • Type=”1″/”A” etc. (i.e which pattern you want for the ordered list? and by default it is 1)
  • Start=”10″/”U” etc. (i.e from where you want the ordered list to be start?)

Note-While no such attributes for unorder list after all it is unordered.

Tag Name- <li>

Description-  It is basically used for pointing out the next line.

Ultimate Example:

  1. <html><head><title>Order Lists</title></head><body><H1><center>Order Lists Example</H1></center><ol type=”1″ start=”10″><li>Ultimatechange<li>Ultimatepedia<li>Change is here</ol></body></html>
  2.  <html><head><title>Order Lists</title></head><body><H1><center>UnOrder Lists Example</H1></center><ul><li>Ultimatechange<li>Ultimatepedia<li>Change is here</ul></body></html>

Output:

Order List Example

  1. Ultimatechange
  2. Ultimatepedia
  3. Change is here

UnOrder List Example

  • Ultimatechange
  • Ultimatepedia
  • Change is here

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.