Write the HTML code to design the content of the 'web page in the form of lists as shown below. Here is a shopping list with categories and items Vegetables Carrots Broccoli Spinach Fruit
Advertisements
Question
Write the HTML code to design the content of the 'web page in the form of lists as shown below.
|
Here is a shopping list with categories and items
|
Code Writing
Advertisements
Solution
<!DOCTYPE html>
<html lang="en">
<head>
<title>Shopping List</title>
</head>
<body> Here is a shopping list with categories and items
<ol>
<li>
<strong>Vegetables</strong>
<ul>
<li>Carrots</li>
<li>Broccoli</li>
<li>Spinach</li>
</ul>
</li>
<li>
<strong>Fruits</strong>
<ul>
<li>Apples</li>
<li>Oranges</li>
<li>Bananas</li>
</ul>
</li>
</ol>
</body>
</html> shaalaa.com
Is there an error in this question or solution?
