Vertical Table Headers in Punjabi | Tables | HTML Tutorials | CSPunjab.Com

CSPunjab

Title : Vertical Table Headers

Language : HTML - The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It defines the meaning and structure of web content. It is often assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript.

To use the first column as table headers, define the first cell in each row as a <th> element:

<!DOCTYPE html>
<html>
<head>
<title>Vertical Table Headers</title>
</head>
<body>
<h2>Vertical Table Headers</h2>

<p>The first column becomes table headers if you set the first table cell in each table row to a TH element:</p>

<table style="width:100%">
  <tr>
    <th>Firstname</th>
    <td>Taranpreet</td>
    <td>Mehakpreet</td>
  </tr>
  <tr>
    <th>Lastname</th>
    <td>Singh</td>
    <td>Kaur</td>
  </tr>
  <tr>
    <th>Class</th>  
    <td>6th</td>
    <td>7th</td>
  </tr>
</table>

</body>
</html>

Admin

Innovative tech professional with 17+ years of experience working as a Government Computer Faculty & Programmer. Capable of working with a variety of technology and software solutions and managing databases. Valuable team member who has experience diagnosing problems and developing solutions.

When there's a task that can be done manually in 10 minutes but you find a way to automate it in 10 days. I'm gonna do what's called a Programmer move.