How to Create a table in html with 2 rows and 3 columns (Source code )
How to Create a table in html with 2 rows and 3 columns (Source code )
<html>
</body>
<!-- CSS Code: Place this code in the document's head (between the 'head' tags) -->
<head>
<title> 2 rows and 3 columns |
2*3 Row and column in HTML Source code </title>
<style>
table.techthinkforu {
width: 100%;
background-color: #ffffff;
border-collapse: separate;
border-width: 2px;
border-color: #2b2a27;
border-style: solid;
color: #121212;
}
table.techthinkforu td, table.techthinkforu th {
border-width: 2px;
border-color: #2b2a27;
border-style: solid;
padding: 3px;
}
table.techthinkforu thead {
background-color: #eae6d7;
}
</style>
</head>
<!-- HTML Code: Place this code in the document's body (between the 'body' tags) where the table should appear -->
<table class="techthinkforu">
<thead>
<tr>
<th>Apple</th>
<th>Microsoft</th>
<th>Google</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
</tr>
<tr>
<td>D</td>
<td>E</td>
<td>F</td>
</tr>
</tbody>
</table>
<!-- Codes by tech.thinkforu.org -->
</body>
</html>
Output Image
Image of table in html with 2 rows and 3 columns (Source code ) |
Comments
Post a Comment