Development1
Development1
Generate a nested list as follows: (Display Fruits and Vegetables in “red” font color using inline
style, Display Mango, Banana and Apple in font color “Blue” and Tomato, Potato and Carrot in
font
Code: l>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Styled List</title>
<style>
/* Internal stylesheet */
#fruits-list li {
color: blue;
#vegetables-list li {
color: orange;
ul li {
color: red;
</style>
</head>
<body>
<h1>shirish singh</h1>
<h1>roll no.23</h1>
<ul>
<ol id="fruits-list">
</ol>
</li>
<ol id="vegetables-list">
</ol>
</li>
</ul>
</body>
</html>
Output:
Q.3) Aim: