How to Create a Table in HTML

How to Create a Table in HTML and CSS

In this article, you will learn How to Create a Table in HTML and CSS. In HTML table defined with the <table> tag. Every row is defined with the <tr> tag in HTML table. In the table, the header is defined with the <th> tag. It will look likes the heading. Table data is defined with the <td> tag. Example:- <html> <head> […]
Read Full Article
How to use CSS for Table in HTML

How to use CSS for Table in HTML

In this article, you will learn How to use CSS for Table in HTML. Example:- table.html <html> <head> <title>Table</title> <link rel="stylesheet" href="style.css"/> </head> <body> <table> <tr> <th>Roll No.</th><th>Name</th><th>Class</th><th>Gender</th><th>City</th> </tr> <tr> <td>124</td><td>Amandeep Singh</td><td>BCA</td><td>Male</td><td>Amritsar</td> </tr> <tr> <td>136</td><td>Nisha Sharma</td><td>MCA</td><td>Female</td><td>Patiala</td> </tr> </table> </body> </html> style.css table, th, td { border: 1px solid black; } table { width: 100%; } th […]
Read Full Article