Saturday, December 21, 2024

Creation of Table with only rowspan using HTML Code

 Creation of Table with only rowspan using HTML Code

NOTE: Rowspan means row margin or row count where we only used to count the no. of rows.

HTML CODE:

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Table</title>

</head>

<body>

<table border="5px" cellpadding="20px" cellspacing="0px">

<tbody>

<tr>

<th bgcolor="red" rowspan="1">ejobindia</th>

<th bgcolor="blue" rowspan="2">Sayanti</th>

<th bgcolor="yellow" rowspan="3">Tapangshu</th>

</tr>

<tr>

<th bgcolor="orange" rowspan="1">Gargi</th>

</tr>

<tr>

<th bgcolor="pink" rowspan="2">Parnashri</th>

<th bgcolor="violet" rowspan="1">Ayan</th>

</tr>

<tr>

<th bgcolor="grey" rowspan="1">Anish</th>

<th bgcolor="green" rowspan="1">Debanjan</th>

</tr>

</body>

</html>

OUTPUT:



No comments:

Post a Comment

CREATION OF ALL MNC COMPANIES TABLE USING HTML CODE

CREATION OF ALL MNC COMPANIES TABLE USING HTML CODE NOTE: Rowspan means row margin or row count where we only used to count the no. of rows....