Computer Science, asked by harshitgupta2295, 10 months ago

write HTML code to generate the following table​

Attachments:

Answers

Answered by BrainlyYoda
1

Answer:

<!DOCTYPE html>

<html>

<head>

<style>

tr {text-align:center;}

</style>

</head>

<body>

<table border="1px solid black" style="border-collapse:collapse;" width="25%">

<tr>

<td rowspan="3">Data</td>

<td colspan="3">Row</td>

</tr>

<tr>

<td rowspan="2">Column</td>

<td>Data 1</td>

<td>Data 2</td>

</tr>

<tr>

<td>ABC</td>

<td>XYZ</td>

</tr>

</table>

</body>

</html>

This HTML code will generate the required table in question.

Answered by poojan
1

HTML Code to generate the given table.

<!DOCTYPE html>

<html>

<head>

<style>

table, th, td {

 border: 1px solid black;

}

</style>

</head>

<body>

<table>

 <tr>

   <th rowspan="3">Data</th>

   <th colspan="3">Row</th>    

 </tr>

 <tr>

   <th rowspan="2">column</th>    

   <th>Data1</th>

   <th>Data2</th>    

 </tr>

 <tr>

   <th>ABC</th>

   <th>XYZ</th>    

 </tr>

</table>

</body>

</html>

Output:

Tagged as an attachment. Please do have a look.

Want to know more? Have a look at these links.

  • Tags we mostly use for constructing a table in HTML.

        https://brainly.in/question/7533033

  • Simple syntax of making a table in HTML. (For beginners)

        https://brainly.in/question/1186810

  • A peek in into the html and a tabular form to write code on!

        https://brainly.in/question/1811005

Thank you so much for dropping by! Hope this answer helps you.

Attachments:
Similar questions