Categories: Asp.net
Tags:

Here is an example of HTML table tag to view users data

View Users Data


 <table border="1" width="700px">
    <thead> 
    <tr>    
        <th>ID</th> <th>Username</th>   <th>Email</th>   <th>Gender</th>   <th>Action</th>  
    </tr>
    </thead>

    <tbody>
        <tr> <td>1</td>   <td>Ashish</td>     <td>ash@test.cod</td>   <td>Male</td>  <td> <a href='edit.html?id=1'> Edit </a> </td>  </tr>

        <tr> <td>2</td>  <td>Geeta</td>     <td>geeta@test.com</td>   <td>Female</td> <td><a href='edit.html?id=2'> Edit </a></td>  </tr>

        <tr> <td>3</td>  <td>Adil</td>     <td>adil@test.com</td>   <td>Male</td>  <td><a href='edit.html?id=3'> Edit </a></td>  </tr>

    </tbody>

    <tfoot> 
    <tr>    
        <th>ID</th> <th>Username</th>   <th>Email</th>   <th>Gender</th>   <th>Action</th>  
    </tr>
    </tfoot>
</table>

<!-- example 2 -->

<table border="1" width="700px">
		<thead> 
		<tr>	
			<th>ID</th> <th>Username</th>   <th>Details </th>  
		</tr>
		</thead>

		<tbody>
			<tr> <td>1</td>   <td colspan='2'>Ashish - Sitapur</td>     </tr>

			<tr> <td rowspan='2'>2</td>  <td colspan='2'>Geeta - Lakhimpur</td>     </tr>
		
			<tr>                           <td colspan='2'>Adil - Unnao</td>     </tr>
	
		</tbody>