How can you create a table with vertical table headers?

 Posted by Pgayath on 9/21/2012 | Category: HTML 5 Interview questions | Views: 2434 | Points: 40
Answer:

In each row provide the first column tag as <th> and refer the example below.

Example:
<html>

<body>
<h4>Vertical headers:</h4>
<table border="1">
<tr>
<th>First Name:</th>
<td>Charles Babbage</td>
</tr>
<tr>
<th>Telephone 1:</th>
<td>555 52 896</td>
</tr>
<tr>
<th>Telephone 2:</th>
<td>555 74 563</td>
</tr>
</table>

</body>
</html>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response