Tables in HTML allow you to organize and display data in a structured format using rows and columns.
A table is created using the <table> element, with rows (<tr>) and cells (<td> or <th>).
The <table> element defines the entire table.
The <tr> element represents a row in the table.
The <td> element defines a standard cell containing data.
The <th> element defines a header cell, usually bold and centered by default.
| Name | Age | City |
|---|---|---|
| Alice | 25 | New York |
| Bob | 30 | Los Angeles |
Use the <link> tag inside the <head> to attach an external CSS file.
Comments in HTML are written between <!-- and -->.
HTML entities are used to display reserved or special characters.
The <iframe> tag embeds another webpage within the current page.
The id attribute uniquely identifies a single HTML element.
Hyperlinks are created using the <a> tag with an href attribute.
Use the <img> tag and specify the image source with the src attribute.
Use the target="_blank" attribute inside the <a> tag.
Copyrights © 2024 letsupdateskills All rights reserved