HTML Tags Reference With Guide
HTML Tags Reference With Guide
This document provides a reference for common HTML tags and their descriptions. HTML
(HyperText Markup Language) is the standard markup language for creating web pages. Each tag
<html>
Defines the root of an HTML document. Use this tag to start an HTML page.
<head>
Contains meta-information about the document. Place title and links to stylesheets here.
<title>
Sets the title of the document shown in the browser title bar. It should be concise and relevant.
<body>
Defines the body of the document. Place all visible content inside this tag.
<h1> to <h6>
Defines HTML headings. Use <h1> for main titles, <h2> for subtitles, down to <h6> for smaller
headings.
<p>
Defines a paragraph. Use this tag to group text into distinct blocks.
<br>
Inserts a single line break. Use sparingly, primarily for line breaks within text.
<hr>
Defines a thematic change in the content (a horizontal rule). Use to separate sections.
<a>
Defines a hyperlink. Use the href attribute to link to another page or resource.
<img>
Embeds an image. Use the src attribute to specify the image path and alt for accessibility.
<div>
<span>
Defines a section in a document but does not have any specific semantic meaning. Use for styling
inline.
<ul>
<ol>
<li>
<table>
<tr>
<th>
<td>
<form>
Defines an HTML form for user input. Use to collect data from users.
<input>
Defines an input control. Use for user input fields.
<textarea>
<button>
<select>
Defines a drop-down list. Use for selecting one option from multiple.
<option>
<link>
Defines the relationship between a document and an external resource. Use to link stylesheets.
<script>
<meta>
Defines metadata about an HTML document. Use for character set, viewport settings, etc.
<style>
<footer>
<header>
<nav>
<article>
Defines an independent piece of content. Use for self-contained articles.
<section>
<aside>
Defines content aside from the content it is placed in. Use for sidebars or related information.