Write the HTML files for three rows and three columns
Answers
Tables are used to arrange data in the form of rows and columns. The <TABLE> tag is used to create the table in HTML. Inside the <TABLE> tag each row is defined by <TR> tag. The <TD> defines a data cell inside.
Example :
<TABLE BORDER = "1">
<TR><TD>HTML</TD><TD>CSS</TD><TD>JavaScript</TD></TR>
<TR><TD>Markup Language</TD><TD>Design and layout</TD><TD>Scripting Language</TD></TR>
</TABLE>
Output -
★ HTML file for a table of 3 rows and columns -
The following table is regarding the major mineral resources of India and world.
The <CAPTION> tag is used to give title to the table.
<html>
<head>
<title> ...... </title>
</head>
<body>
<table border="1" >
<caption> Major mineral resources of India and world. </caption>
<tr><td>Mineral</td><td>India</td><td>World</td></tr>
<tr><td>Iron</td><td>Odisha,Karnataka</td><td> China,Brazil</td></tr>
<tr><td>Bauxite</td><td>Maharashtra,Jharkhand</td><td>Australia,Guinea</td></tr>
</table>
</body>
</html>
The attachment has the output of the above given.