Computer Science, asked by Dhidhi6229, 11 months ago

Sumit has to create following list through HTML as a part of his social science project. Help him in writing HTML code for the same. (2) ASIAN COUNTRIES AND THEIR CAPITALS 1. INDIA • New Delhi 2. PAKISTAN Islamabad 3. THAILAND Bangkok

Answers

Answered by anishasa
23

Answer:

Explanation:

<html>

<head>

</head>

<body>

<h2>ASIAN COUNTRIES AND THEIR CAPTIALS</h2>

<ol>

<li>INDIA</li>

<ul style="list-style-type:disc;">

<li>New Delhi</li>

</ul>

<li>PAKISTAN</li>

<ul style="list-style-type:disc;">

<li>Islamabad</li>

</ul>

<li>THAILAND</li>

<ul style="list-style-type:disc;">

<li>Bangkok</li>

</ul>

</ol>

</body>

</html>

Answered by Tulsi4890
0

To create a list of Asian countries and their capitals using HTML, Sumit can follow these steps:

  • First, he needs to open a new HTML file in a code editor or a text editor.
  • Then, he should create an unordered list using the <ul> tag.
  • Inside the <ul> tag, he should create list items using the <li> tag for each country and its capital.
  • For each list item, he should start by writing the name of the country followed by the capital in a format like "Country - Capital".
  • To create sub-points for each country and capital, he should use the <br> tag to add a line break after the name of the country, and then add the name of the capital after it.

Finally, he should close the list item tag and repeat the process for each country and capital.

The HTML code for Sumit's list would look like this:

<ul>

<li>INDIA<br>New Delhi</li>

<li>PAKISTAN<br>Islamabad</li>

<li>THAILAND<br>Bangkok</li>

</ul>

This will create a bulleted list of Asian countries and their capitals, with each country and capital appearing on a separate line within the list item. Sumit can customize the appearance of the list using CSS to match the requirements of his social science project.

To learn more about HTML from the given link.

https://brainly.in/question/2500440

#SPJ3

Similar questions