Computer Science, asked by rehanakhatun0604, 11 months ago

create table in html​

Answers

Answered by jhansijeyakumar12
1

Answer:

Html codings are used to write the table in a website. TD is table data. It is used for writing table content.

PLZ FOLLOW ME AND MARK BRAINLIEST

Answered by Anonymous
10

&lt;!DOCTYPE html&gt;</p><p>&lt;html&gt;</p><p>&lt;head&gt;</p><p>&lt;style&gt;</p><p>table, th, td {</p><p>  border: 1px solid black;</p><p>}</p><p>&lt;/style&gt;</p><p>&lt;/head&gt;</p><p>&lt;body&gt;</p><p></p><p>&lt;h2&gt;The table element&lt;/h2&gt;</p><p></p><p>&lt;table&gt;</p><p>  &lt;tr&gt;</p><p>    &lt;th&gt;Month&lt;/th&gt;</p><p>    &lt;th&gt;Savings&lt;/th&gt;</p><p>  &lt;/tr&gt;</p><p>  &lt;tr&gt;</p><p>    &lt;td&gt;January&lt;/td&gt;</p><p>    &lt;td&gt;$100&lt;/td&gt;</p><p>  &lt;/tr&gt;</p><p>  &lt;tr&gt;</p><p>    &lt;td&gt;February&lt;/td&gt;</p><p>    &lt;td&gt;$80&lt;/td&gt;</p><p>  &lt;/tr&gt;</p><p>&lt;/table&gt;</p><p></p><p>&lt;/body&gt;</p><p>&lt;/html&gt;

\bold\orange{HTML\:code\: of\: the \:above\: table.}

<!DOCTYPE html>

<html>

<head>

<style>

table, th, td {

border: 1px solid black;

}

</style>

</head>

<body>

<table>

<tr>

<th>Month</th>

<th>Savings</th>

</tr>

<tr>

<td>January</td>

<td>$100</td>

</tr>

<tr>

<td>February</td>

<td>$80</td>

</tr>

</table>

</body>

</html>

Similar questions