Table Using HTML (LAB)
Table Using HTML (LAB)
Date: .....................................
<style> Block: Contains CSS rules for styling the table, header cells (th), and data cells
(td):
border: 3px solid black;: Sets a 3-pixel solid black border for the table, headers, and cells.
border-collapse: collapse;: Ensures borders between cells are collapsed into a single border.
text-align: center;: Centers the text in table cells.
<meta charset="UTF-8">: Specifies the character encoding for the document (UTF-
8, which supports most characters and symbols).
<title>Document</title>: Sets the title of the HTML document, which appears on the
browser tab.
</head>
<table>: Starts the table element. However, there is a nested table tag here which is
incorrect and redundant.
<td rowspan="6"> Hours </td>: Creates a cell spanning 6 rows in the first column to label
the hours.
<td> MON </td>, <td> TUE </td>, etc.: Define individual cells for each day of the
week.
<th> SCIENCE </th>: Defines a header cell for the "SCIENCE" subject.
<td> MATHS </td>, etc.: Defines individual cells for subjects.
<td colspan="5"> LUNCH </td>: Creates a cell spanning 5 columns for the lunch
break.
<td rowspan="2"> Project </td>: Creates a cell spanning 2 rows for "Project".
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>data</title>
</head>
<style>
table,th,td,caption {
border:2px solid rgb(0, 0, 0);
border-collapse:collapse;
}
</style>
<body>
<table cellspacing="10">
<caption>data table</caption>
<tr>
<th></th>
<th>mon</th>
<th>tue</th>
<th>wed</th>
<td>thu</td>
<td>fri</td>
<td>sat</td>
</tr>
<th>8.00</th>
One sheet per experiment (10-20) to be used.
* Coding Phase: Pseudo Code / Flow Chart / Algorithm
<tr>
<th>8.00</th>
<td>iwt</td>
<td>c++</td>
<td>c</td>
<td>iwt</td>
<td>apit</td>
<td>java</td>
</tr>
<tr>
<th>9.00</th>
<td>java</td>
<td>react</td>
<td>java</td>
<td>iwt</td>
<td>english</td>
<td>dbma</td>
</tr>
<tr>
<th>10.00</th>
<td>c</td>
<td>java</td>
<td>dbms</td>
<td>c</td>
<td>react</td>
<td>skill</td>
</tr>
<tr> One sheet per experiment (10-20) to be used.
* Coding Phase: Pseudo Code / Flow Chart / Algorithm
<tr>
<th>11.00</th>
<td>dbms</td>
<td>node.js</td>
<td>c++</td>
<td>skill</td>
<td>c</td>
<td>iwt</td>
</tr>
</table>
</body>
</html>
DATA TABLE