Practical No17table1
Practical No17table1
Practical title: Create a webpage that displays first year timetable. Make effective use of row span and
cols pan attributes. Make use of tag too.
Theory:-
An HTML Table is an arrangement of data in rows and columns in tabular format. Tables are useful for
various tasks, such as presenting text information and numerical data. A table is a useful tool for quickly
and easily finding connections between different types of data. Tables are also used to create databases.
<table>
<tr>
<td> content</td>
</tr>
</table>
Represents
a row within an HTML
<tr>
table, containing
individual cells.
<th> Shows a
table header cell that
typically holds titles or
HTML Tags Descriptions
headings.
Represents a
standard data cell,
<td>
holding content or
data.
Provides a title or
<caption> description for the
entire table.
It will divide one cell/row into multiple columns, and the number of columns
depend on the value of colspan attribute.
It will divide a cell into multiple rows. The number of divided rows will
depend on rowspan values.
Example:-
<table>
<caption>Employee details</caption>
<tr>
<th>Name</th>
<th colspan="2">Jobs</th>
<th>Working Experience</th>
</tr>
<tr>
<td>John</td>
<td>Software Engineer</td>
<td>Data Analyst</td>
</tr>
<tr>
<td>Ale</td>
</tr>
<tr>
<td>Jack</td>
<td>Blogger</td>
<td>6 Months</td>
</tr>
</table>
Conclusion:-