Sponsored Ad

Thursday, April 8, 2010

How to Create List in HTML

 

List is very important for any webpage. To display well formatted and point wise data, we use list. List are different type and examples are given below.

List Example:

  • Item 1
  • Item 2
  • Item 3

Square List:

<body>
<h1 align="center">Example</h1>
<hr>
<ul type="square">
<li>Item 1
<li>Item 2
<li>Item 3
</ul>
</body>

 

Numeric Ordered List:

<body>
<h1 align="center" >Example</h1>
<hr>
<ol type="1">
<li>Item 1
<li>Item 2
<li>Item 3
</ol>
</body>

 

Alphabet Orders List

<ol type=”A” start=3>
<li>Item 1
<li>Item 2
<li>Item 3
</ol>

You can have type as: A or a or 1 or I or i
Start is a number.

 

Formatted List:

<body>
<h1 align="center">Example</h1>
<hr>
<dl>
<dt><b>Toyota</b>
<dd>Made in Japan
<dt><b>Ford</b>
<dd>Made in USA
<dt><b>Hyundai</b>
<dd>Made in Korea
</dl>
</body>

No comments:

Post a Comment

Sponsored Ad

Development Updates