Day 13: Content (Formatting Visual Data), Unordered list, ordered list.
unordered list:( change list square ur circle)
ul{
list-style-type: square;
list-style-position: inside;
}
li{
padding: 10px;
}
td{
border-style: solid;
}
________________________________________________
ordered list: (change number or letter)
ol{
list-style-type: lower-alpha;
1. The list-style-type Property
- The type of list-item marker is specified by the list-style-type.
- Syntax :
- list-style-type: value;
- Example :
- Code :
<!DOCTYPE html>
<html>
<head>
<style>
.ol1 {list-style-type: lower-roman;}
.ol2 {list-style-type:upper-roman;}
</style>
</head>
<body>
<ol class="ol1">
<li>HTML</li>
<li>CSS</li>
<li>Javascript</li>
</ol>
<ol class="ol2">
<li>Breakfast</li>
<li>Lunch</li>
<li>Dinner</li>
</ol>
</body>
</html>
Output :
- Try out the following values and observe the output :
- upper-roman
- lower-alpha
- upper-alpha
- decimal-leading-zero
- decimal
- none
Comments
Post a Comment