5 Amazing HTML Table Tags Hacks to Make Your Website Stand Out


What Is Html?

HTML, or HyperText Markup Language, is the standard language for creating and structuring content on the World Wide Web. It uses a system of tags to define and organize elements on a web page, such as headings, paragraphs, links, images, and more. HTML provides the basic structure for web documents, forming the backbone of web development alongside Cascading Style Sheets (CSS) and JavaScript.

Table Tags In HTML? 

In HTML, the <table> element is used to create tables. Here's a concise overview of the basic table-related tags:

<table>: Defines the beginning of a table.
<tr>: Represents a table row.
<th>: Defines a header cell (typically used in the first row or column).
<td>: Represents a standard data cell.
<thead>: Groups the header content in a table.
<tbody>: Groups the body content in a table.
<tfoot>: Groups the footer content in a table.
<caption>: Table Tgas Using HTML.


<!DOCTYPE html>
<head>
<title>Demo Table</title>
</head>
<style>
table{
width:100%;
}
</style>
<table border="2px">
<tr>
<th>S.NO</th>
<th>NAME</th>
<th>SUBJECT</th>
<th>MARKS</th>
</tr>
<tr>
<td align="center">1</td>
<td align="center">Demo</td>
<td align="center">Demo20</td>
<td align="center">100</td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">Demo2</td>
<td align="center">Demo30</td>
<td align="center">99</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">Demo3</td>
<td align="center">Demo40</td>
<td align="center">98</td>
</tr>
</table>
</html>
      


Demo Table
S.NO NAME SUBJECT MARKS
1 Demo Demo20 100
2 Demo2 Demo30 99
3 Demo3 Demo40 98


YouTube Video On HTML Table Tags :




Post a Comment

Welcome to Neelgroups

Previous Post Next Post