Computer Science, asked by Shibo3880, 1 year ago

Create a table in html to display any 10 states and its capital

Answers

Answered by MyselfAbhi
3
Hi there!
Here's how you can do this -

<html>
<head>
<title>10 states with their capitals.</title>
</head>
<body>
<table width="500px" border="1">
<th>State and their capitals</th>
<tr>
<td>State</td><td>Capital</td>
</tr>
<tr>
<td>ASSAM</td><td>DISPUR</td>
</tr>
<tr>
<td>BIHAR</td><td>PATNA</td>
</tr>
<tr>
<td>GOA</td><td>PANAJI</td>
</tr>
<tr>
<td>M.P</td><td>BHOPAL</td>
</tr>
<tr>
<td>MAHARASTRA</td><td>MUMBAI</td>
</tr>
<tr>
<td>W.B</td><td>KOLKATA</td>
</tr>
<tr>
<td>PUNJAB</td><td>CHANDIGARH</td>
</tr>
<tr>
<td>NAGALAND</td><td>KOHIMA</td>
</tr>
<tr>
<td>GUJRAT</td><td>GANDHINAGAR</td>
</tr>
<tr>
<td>JHARKHAND</td><td>RANCHI</td>
</tr>
</table>
</body>
</html>

Hope it helps. :)
Similar questions