0% found this document useful (0 votes)
12 views7 pages

HTML Cheatsheet

The document is a comprehensive list of HTML tags categorized into sections such as Basic Structure, Content Sectioning, Scripting & Metadata, Text Formatting, Forms and Inputs, Media and Embedding, Table Tags, and Obsolete or Deprecated Tags. Each tag is accompanied by a brief description of its purpose and usage. This serves as a reference guide for web developers to understand and utilize HTML effectively.

Uploaded by

konihe5892
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views7 pages

HTML Cheatsheet

The document is a comprehensive list of HTML tags categorized into sections such as Basic Structure, Content Sectioning, Scripting & Metadata, Text Formatting, Forms and Inputs, Media and Embedding, Table Tags, and Obsolete or Deprecated Tags. Each tag is accompanied by a brief description of its purpose and usage. This serves as a reference guide for web developers to understand and utilize HTML effectively.

Uploaded by

konihe5892
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

LIST OF

HTML TAGS
TABLE OF CONTENTS

<!-- ... --> <dd> <label> <select>


<!DOCTYPE> <del> <legend> <small>
<a> <details> <li> <source>
<abbr> <dfn> <link> <span>
<acronym> <dialog> <main> <strong>
<address> <dir> <map> <style>
<applet> <div> <mark> <sub>
<area> <dl> <meta> <summary>
<article> <dt> <meter> <sup>
<aside> <em> <nav> <svg>
<audio> <embed> <noframes> <table>
<b> <fieldset> <noscript> <tbody>
<base> <figcaption> <object> <td>
<basefont> <figure> <ol> <template>
<bdi> <font> <optgroup> <textarea>
<bdo> <footer> <option> <tfoot>
<big> <form> <output> <th>
<blockquote> <frame> <p> <thead>
<body> <frameset> <param> <time>
<br> <h1> to <h6> <picture> <title>
<button> <head> <pre> <tr>
<canvas> <header> <progress> <track>
<caption> <hr> <q> <tt>
<center> <html> <rp> <u>
<cite> <i> <rt> <ul>
<code> <iframe> <ruby> <var>
<col> <img> <s> <video>
<colgroup> <input> <samp> <wbr>
<data> <ins> <script>
<datalist> <kbd> <section>
BASIC STRUCTURE TAGS

Tag Description

<!DOCTYPE> Declares the document type and version of HTML.

<html> Root element of an HTML page.

<head> Contains metadata, links, title, and scripts.

<title> Sets the title of the web page (in browser tab).

<body> Main content area displayed on the page.

CONTENT SECTIONING TAGS

Tag Description

<article> Self-contained content block (e.g., blog post).

<aside> Side content, like a sidebar.

<header> Header for a section or page.

<footer> Footer for a section or page.

<main> Main content of the document.

<nav> Navigation links section.

<section> Defines a generic section.

<h1> to <h6> Headings from most important (<h1>) to least (<h6>).

SCRIPTING & METADATA

Tag Description

<script> Defines client-side script.

<noscript> Content shown when JS is disabled.

<style>
CSS styles.
<link>
Links to external resources (like CSS).
<meta>
Metadata (charset, viewport, etc).
<base>
Sets base URL for relative links.
TEXT FORMATTING TAGS

Tag Description

<a> Creates a hyperlink.

<abbr> Defines an abbreviation.

<acronym> ⚠ Defines an acronym (deprecated).

Makes text bold (non-semantic).


<b>

<big> ⚠ Makes text larger (deprecated).

Defines a citation.
<cite>
Displays code in monospace font.
<code>
Defines a term.
<dfn>
Emphasizes text (usually italic).
<em>
Italicizes text (non-semantic).
<i>
Represents keyboard input.
<kbd>
Highlights text.
<mark>
Inline quotation.
<q>
Fallback for browsers that don't support ruby annotations.
<rp>
Ruby annotation (pronunciation guide).
<rt>
Ruby annotation container.
<ruby>
Strikethrough text.
<s>
Sample output from a computer program.
<samp>
Smaller text.
<small>
Generic inline container.
<span>
Bold text with semantic importance.
<strong>
Subscript text.
<sub>
Superscript text.
<sup>

<tt> ⚠ Monospaced text (deprecated).

Underlined text.
<u>
Defines a variable in programming.
<var>
Suggests a line break opportunity.
<wbr>
LIST TAGS

Tag Description

<ul> Unordered list.

<ol> Ordered list.

<li> List item.

<dl> Definition list.

<dt> Definition term.

<dd> Definition description.

FORMS AND INPUTS

Tag Description

<form> Form container.

<input> Form input field.

<button> Clickable button.

<label> Label for form elements.

<textarea> Multi-line text input.

<select> Drop-down list.

<option> Option in a select.

<optgroup> Group of options in a select.

<fieldset> Groups related elements in a form.

<legend> Title for a <fieldset>.

<datalist> Provides autocomplete options.

<output> Displays result of a calculation.

<meter> Represents scalar measurement (e.g. disk usage).

<progress> Shows progress of a task.


MEDIA AND EMBEDDING TAGS

Tag Description

<img> Embeds an image.

<audio> Embeds sound content.

<video> Embeds video content.

<source> Specifies media source (used with <audio> and <video>).

<track> Specifies text tracks for media.

<canvas> Draw graphics via scripting.

<svg> Scalable Vector Graphics.

<iframe> Embeds another HTML page.

<object> Embeds external content.

<embed> Embeds external resources (e.g., plugins).

<picture> Allows multiple image sources.

<param> Parameters for plugins or embedded content.

TABLE TAGS

Tag Description

<table> Creates a table.

<tr> Table row.

<td> Table data cell.

<th> Table header cell.

<thead> Group of header rows.

<tbody> Group of body rows.

<tfoot> Group of footer rows.

<caption> Table caption.

<col> Specifies column properties.

<colgroup> Groups columns.


OBSOLETE OR DEPRECATED TAGS

Tag Description

<applet> ⚠ Embeds Java applet (deprecated).

<acronym> ⚠ Defines acronym (deprecated).

<basefont> ⚠
Sets base font (deprecated).

<big> ⚠
Large text (deprecated).

Centers text (deprecated).


<center> ⚠
Directory list (deprecated).
<dir> ⚠
Sets font styles (deprecated).
<font> ⚠
Defines a frame in frameset (deprecated).
<frame> ⚠
Used for defining frames (deprecated).

<frameset> ⚠ Content for browsers that don't support frames.

<noframes> ⚠ Teletype text (deprecated).

<tt> ⚠

You might also like