HTML_Tags
HTML_Tags
HTML tags define the structure and content of a web page. Tags typically come in pairs (e.g., <tag> and
</tag>), but some are self-closing.
-----------------------------------------------------------------------------------------------------------------------------------
Basic Tags
Formatting Tags
Lists
• <a>: Hyperlink.
• <nav>: Navigation section.
• <button>: Clickable button.
• <img>: Image.
• <figure>: Figure container (image + caption).
• <figcaption>: Figure caption.
• <audio>: Audio content.
• <video>: Video content.
• <source>: Media source for <audio> or <video>.
Tables
• <table>: Table.
• <tr>: Table row.
• <td>: Table cell.
• <th>: Table header cell.
• <thead>: Table header group.
• <tbody>: Table body group.
• <tfoot>: Table footer group.
• <caption>: Table caption.
• <col>: Defines column properties.
• <colgroup>: Groups columns.
Forms
Semantic Tags
Scripting
Styles
Meta Information
Attributes modify the behavior or appearance of HTML tags. They are written inside the opening tag.
Global Attributes
Common Attributes