Computer Science, asked by pammysonkar0123, 1 month ago

write a program to creat a table in HTML

Answers

Answered by svanisri172
0

Explanation:

Use the HTML <table> element to define a table.

Use the HTML <tr> element to define a table row.

Use the HTML <td> element to define a table data.

Use the HTML <th> element to define a table heading.

Use the HTML <caption> element to define a table caption.

Use the CSS border property to define a border.

Answered by HarshitRaj12
0

A program to creat a table in HTML:-

<!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>

Hope it's help you!!

Similar questions