Switch to full style
HTML code examples
Post a reply

Usage of UL tag

Mon Feb 27, 2012 1:15 am

In this example we show the usage of UL tag and we add border using CSS.
Code:


<html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
title>Usage of UL tag</title>
<
style type="text/css">
li {
 
padding2px;
 
border1px solid black;
}

ul {
 
margin-left40px;
 
padding2px;
 list-
stylenone;
 
width10%;
 
border1px solid red
}
</
style>
</
head>

<
body>
     <
p>
      
These are the list of colors 
     </
p>
    <
ul>
    <
li>red</li
    <
li>green</li>
    <
li>blue</li
    <
li>yellow</li
    </
ul>

</
body>
</
html>

 




Post a reply
  Related Posts  to : Usage of UL tag
 usage of kbd tag     -  
 tt usage example     -  
 var tag usage     -  
 Usage of sub tag     -  
 dir tag usage     -  
 dd tag usage     -  
 usage of ol tag     -  
 Usage of sup tag     -  
 Usage of ins tag     -  
 usage of menu tag     -  

Topic Tags

HTML List