learn programming language ||web design||
1 subscriber
123 photos
7 videos
142 links
Introduction to HTML, CSS, JavaScript, PHP and
Web webdesign Tutorials.
Download Telegram
html Table Tag Use to
Border Tag


<! Doctype html>

<html>

<body>

<table border = 1>

<tr>

<th>header 1</th>

<th>header 2</th>

</tr><tr>

<td>cell 1</td>

<td>cell 2<\td>

</tr><tr>

<td>cell 3</td>

<td>cell 4</td>

</tr></table>

</body>
</html>
Table tag Colspan Tag

<html>
<body>
<h1>Example of TD colspan attribute</h1> <table border="1">
<tr> <th colspan="2">Student Fees detail</th></tr>
<tr>
<th>Student</th>
<th>Fees Amount</th>
</tr>
<tr>
<td>Manish</td>
<td>1000</td>
</tr>
<tr>
<td>Puneet</td>
<td>2000</td>
</tr>
<tr> <td colspan="2">Total: 3000</td>
</tr>
</table>
</body>
</html>
Rowspan Tag Table tag

<html>

<body>

<h1>Example of TD Rowspan attribute</h1> <table border="1">

<tr>
<th>Student</th>
<th>Fees Amount</th>
<th>Course</th>
</tr>
<tr>
<td>Manish</td>
<td>700</td>
<td rowspan="2">Java</td>
</tr> <tr>
<td>Puneet</td> <td>800</td>
</tr>
</table>
</body>
</html>
Alignment Tag :-
Table Tag


<! Doctype html>
<html>
<body>
<table height="300" width="500" Border="2" Bordercolor="red">

<caption> Use of Verticle Alignment Attribute of Table</caption>
<tr>

<td valign="Top">Top Align content</td>
<td valign="Center">Center Align content
</td>
<td valign="Bottom">Bottom Align content</td>
</tr>
</table>
</body>
</html>