logo

India's First Software Developer Community

Table

There are some important tags in table tags They are :- 1) table - used to create table 2) tr - Used to create row of the table 3) th - Used for heading of the table 4) td - Used for table data Now we use this tags in our example. now its time for some attributes for example rowspan, colspan


<!DOCTYPE html>   
<html>
<head>

</head>
<body>
<table border="1" width="500" height="500">
    <tr>
        <th align="center">Sr. No</th>
        <th align="center">Student</th>
        <th align="center">Roll No.</th>
        <th colspan="2"> This is Colspan</th>
    </tr>
    <tr>
        <td>1</td>
        <td>Jordan</td>
        <td rowspan="2">This is rowspan</td>        
    </tr>
    <tr>
        <td>2</td>
        <td>Tushar</td>
        <td>002</td>
    </tr>
</table>
</body>
</html>




Subscribe Us :

Chapters :-


Advertisement