Tuesday 10 May 2011

HTML Lists and Attributes

HTML Lists
The HTML lists are ordered and unordered lists:

An ordered list
  1. First
  2. Second
  3. Third
An unordered list
  • First
  • Second
  • Third
HTML Unordered Lists
<ul>
<li>Ram</li>
<li>Shyam</li>
</ul>

How this code looks in a browser:
  • Ram
  • Shyam
HTML Ordered Lists
<ol>
<li>Ram</li>
<li>Shyam</li>
</ol> 

How this code looks in a browser:
  1. Ram
  2. Shyam
HTML Definition Lists 
A definition list is below
<dl>
<dt>Ram</dt>
<dd>- is a good boy</dd>
<dt>Shyam</dt>
<dd>- is a bad boy</dd>
</dl> 

How this code looks in a browser:

Ram
     - is a good boy
Shyam
     - is a bad boy

1 comment:

  1. Thanks for the information on web designing. I eventually hopes to come up with a best web design.

    ReplyDelete