Computer Science, asked by tanvirbhai6376, 3 months ago

Write an HTML program to show nesting of lists​

Answers

Answered by kamalkpoddar
2

Answer:

I gave certain side-notes, which can help you understand the concept. If helpful, pls mark as brainliest.

Explanation:

<html>

<head> <title> HTML Program

</title> </head>

<body>

<ul>

<li> India </li>

<li> Pakistan           ----------------- (Pls see that the li tag here is not closed)

<ul>            ------------------- (start of a new list without ending the previous list)

<li> Karachi </li>

<li> Lahore </li>

</ul>     ----------------------- (closing tag for the nested list)

</li>      ------------------------ (closing tag for "Pakistan")

<li> Bangladesh </li>

</ul> ------------ (closing the main tag)

</body>

</html>

The result that you should get is:

  • India
  • Pakistan

         (disk-shaped bullet) Karachi

         (disk-shaped bullet) Lahore

  • Bangladesh

Sorry, I could not insert a disk-shaped bullet. Nevertheless, I hope you could understand the program.

Similar questions