English

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
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

  1. Vegetables
    • Carrots
    • Broccoli
    • Spinach
  2. Fruits
    • Apples
    • Oranges
    • Bananas
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?
2023-2024 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×