Computer Science, asked by rehanmeghani2003, 10 months ago

Write the HTML files for three rows and three columns

Answers

Answered by Sauron
5

\mathfrak{\large{\underline{\underline{Answer:}}}}

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 -

\begin{tabular}{|c|c|c|}\cline{1-3} HTML &amp; CSS &amp; JavaScript\\\cline{1-3}\ Markup\:Language&amp; Design\:and\:Layout&amp;Scripting\:Language\\\cline{1-3}\end{tabular}

\rule{300}{1.5}

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.

Attachments:
Similar questions