Summary of HTML tags

βœ… Basic HTML Structure Tags

TagDescription
<!DOCTYPE html>Declares the document type (HTML5).
<html>Root element of an HTML page.
<head>Contains meta information about the document.
<title>Sets the title of the document (shown in browser tab).
<body>Contains the content displayed on the web page.

πŸ“’ Text Formatting Tags

TagDescription
<h1> to <h6>Headings from largest (<h1>) to smallest (<h6>).
<p>Paragraph of text.
<br>Line break (no closing tag).
<hr>Horizontal rule (divider line).
<strong>Bold text (semantic emphasis).
<em>Italic text (emphasized).
<b>Bold text (visual only).
<i>Italic text (visual only).
<u>Underlined text.

πŸ”— Links and Media Tags

TagDescription
<a>Hyperlink (href attribute used).
<img>Displays an image (src, alt).
<video>Embeds a video.
<audio>Embeds audio.

🧾 List Tags

TagDescription
<ul>Unordered (bulleted) list.
<ol>Ordered (numbered) list.
<li>List item (used inside <ul> or <ol>).

🧩 Layout and Grouping Tags

TagDescription
<div>Division/block element (for grouping).
<span>Inline container (for styling small parts).
<header>Represents page or section header.
<footer>Represents page or section footer.
<nav>Navigation links section.
<main>Main content of the document.
<section>A thematic grouping of content.
<article>Independent, self-contained content.

πŸ“‹ Table Tags

TagDescription
<table>Defines a table.
<tr>Table row.
<th>Table header cell (bold & centered).
<td>Table data cell.
<caption>Table caption (title).

πŸ“ Form and Input Tags

TagDescription
<form>Creates an input form.
<input>Input field (text, radio, checkbox, etc.).
<label>Defines a label for input.
<textarea>Multi-line text input.
<select>Drop-down list.
<option>Option in drop-down.
<button>Clickable button.

πŸ’¬ Other Useful Tags

TagDescription
<meta>Metadata (e.g., character set, viewport).
<link>Links external resources (like CSS).
<script>Embeds JavaScript.
<!-- comment -->Adds a comment (not displayed).

Comments

Popular posts from this blog

Foundations Of Computing: From Hardware Essentials To Web Design GXEST203 2024 scheme Dr Binu V P

Computer Architecture

Basics of HTML