HTML
An HTML table is defined with <table> tag.
Table rows are defined with <tr> tags.
Table headers are defined with <th> tags. (The text between <th> tag will look bold and aligned in center by default)
Example:
<table>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Grade</th>
</tr>
<tr>
<td>Mohit</td>
<td>Shah</td>
<td>10</td>
</tr>
<tr>
<td>Rohit</td>
<td>Sharma</td>
<td>12</td>
</tr>
<tr>
<td>Ronit</td>
<td>Mehta</td>
<td>11</td>
</tr>
</table>
Preview:
First name | Last name | Grade |
---|---|---|
Mohit | Shah | 10 |
Rohit | Sharma | 12 |
Ronit | Mehta | 11 |
Button is defined by <button> tag
Example:
<button>This is Button</button>
Preview:
Hurrey! Now you have gain the basic knowledge of HTML Click the Button given bellow to continue Learning.