Page 88 - Code Craft Computer-7
P. 88
Note : If one of the values is missing in the above shorthand property, then the default value for
the missing property will be inserted, if any.
NESTED LIST
A nested list is a list inside any other list. An ordered and an unordered list can be nested within
each other to form a multi-level list. To create a nested list, follow the given code:
<!DOCTYPE>
<HTML>
<HEAD>
<TITLE>Nested List</TITLE>
<STYLE>
BODY{background-color:RGB(255, 251, 214)}
OL{list-style-type:lower-roman;}
UL{list-style-type:circle;}
LI{font-size:20px;}
H1{color:blue}
</STYLE></HEAD>
<BODY>
<H1>Recipe Ingredients</H1>
<UL><LI style=color:red> <B> Pancakes</B>
<OL>
<LI style=color:darkgreen>Flour
<LI style=color:darkgreen>Milk
<LI style=color:darkgreen>Eggs
<LI style=color:darkgreen>Butter
</OL>
<LI style=color:red> <B>Sandwiches </B>
<OL style=list-style-type:upper-alpha>
88
Computer-7

