Computer Science, asked by hifzashaikh17, 1 month ago

write a program in HTML to display 4 rows and 3 columns​

Answers

Answered by 0000004220
4

Answer:

CSS

table {

border-collapse: collapse;

border: 5px solid black;

width: 100%;

}

td {

width: 50%;

height: 2em;

border: 1px solid #ccc;

}

HTML

<table>

<tbody>

<tr><td></td><td></td></tr>

<tr><td></td><td></td></tr>

<tr><td></td><td></td></tr>

</tbody>

</table>

===== Everything between these lines =====

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>Sample table</title>

<style>

table {

border-collapse: collapse;

border: 5px solid black;

width: 100%;

}

td {

width: 50%;

height: 2em;

border: 1px solid #ccc;

}

</style>

</head>

<body>

<table>

<tbody>

<tr><td></td><td></td></tr>

<tr><td></td><td></td></tr>

<tr><td></td><td></td></tr>

</tbody>

</table>

</body>

</html>

Similar questions