Hindi, asked by nawaj657, 9 hours ago

write a program in html for creating a table​

Answers

Answered by podilimaneesha
0

Answer:

<!DOCTYPE html>

<html>

<head>

<style>

table, th, td {

border: 1px solid black;

}

</style>

</head>

<body>

<h1>Programming Languages</h1>

<table>

<tr>

<th>Language</th>

<th>Release Year</th>

</tr>

<tr>

<td>Java</td>

<td>1995</td>

</tr>

<tr>

<td>Pascal</td>

<td>1970</td>

</tr>

</table>

</body>

</html>

Answered by shanushagun0909
0

Answer:

The <table> tag defines an HTML table.

Each table row is defined with a <tr> tag. Each table header is defined with a <th> tag. Each table data/cell is defined with a <td> tag.

By default, the text in <th> elements are bold and centered.

By default, the text in <td> elements are regular and left-aligned.

Explanation:

A simple HTML table:

<table style="width:100%">

<tr>

<th>Firstname</th>

<th>Lastname</th>

<th>Age</th>

</tr>

<tr>

<td>Jill</td>

<td>Smith</td>

<td>50</td>

</tr>

<tr>

<td>Eve</td>

<td>Jackson</td>

<td>94</td>

</tr>

</table>

Similar questions