Searching...
Wednesday 26 September 2012

Html List Tag

9:38 pm

Html List Tag

Html List Tag :

      Html supports ordered , unordered and definition lists.
1.       An unordered list is a list of items. The list items are marked with bullets. An unordered lists start with the <ul> tag. Each list item starts with the <li> tag.
2.       An ordered list defined with <ol> tag, unordered list defined with <ul> tag.
3.       A definition list is not a list of single items. It is a list of items with a description of each item.
4.       A definition list starts with <dl> tag , each term stands with <dt> tag and each descrition starts with <dd> tag.
Attributes of <ol> :
  Type :  1/a/A/i/I
 Start :  start=
Style : to provide css properties.
Attributes of <ul> :
       Type : disc/circle/square
      Style :  to provide css properties.

Html List Tag Eg:


 <html>
<body>
<ul style = “font-family: verdana; font-size:22px; line-height: 2 ; list-style-image:url(image/ball.jgp)” type=”square”>
<li> India</li>
<li> Pakistan</li>
<li> sri lanka</li>
</ul>
</html>

0 comments:

Post a Comment