Tag |
HTML Dictionary |
<!-- ... --> |
Used to provide a comment or description. Sentences located in this container will not be visible in the browser.
<!-- This is a comment -->
|
<!DOCTYPE> |
Defines document type information.
<!DOCTYPE html>
|
<a> |
Defines an anchor, or link to another document.
<a href="https://example.com">Click Here</a>
|
<abbr> |
Describes an abbreviated expression.
<abbr title="Hypertext Markup Language">HTML</abbr>
|
<acronym> |
Defines an acronym (deprecated, use <abbr>).
<acronym title="Portable Network Graphics">PNG</acronym>
|
<address> |
Defines contact information for the author.
<address>123 Main Street, City, Country</address>
|
<applet> |
Used to insert Java applets (deprecated).
<applet code="Applet.class" width="300" height="300"></applet>
|
<area /> |
Defines a clickable area on an image map.
<area shape="rect" coords="34,44,270,350" href="https://example.com" alt="Example">
|
<b> |
Bold text.
<b>Bold Text</b>
|
<base /> |
Defines the base URL for relative URLs.
<base href="https://www.example.com">
|
<basefont /> |
Sets the default font for a document (deprecated).
<basefont color="red">
|
<bdo> |
Overrides the text direction.
<bdo dir="rtl">This is Right to Left text</bdo>
|
<big> |
Increases the font size.
<big>Large Text</big>
|
<blink> |
Blinks text (deprecated).
<blink>This text blinks!</blink>
|
<blockquote> |
Defines a long quote.
<blockquote>This is a long quote from a book</blockquote>
|
<body> |
Defines the body/content of an HTML document.
<body>This is the body content.</body>
|
<br /> |
Creates a line break.
Line 1<br />Line 2
|
<button> |
Defines a clickable button.
<button>Click Me</button>
|
<caption> |
Creates a caption for a table.
<caption>Table Caption</caption>
|
<center> |
Centers text (deprecated).
<center>Centered Text</center>
|
<cite> |
Defines a citation.
<cite>The Great Gatsby</cite>
|
<code> |
Defines a piece of computer code.
<code>print("Hello World")</code>
|
<col /> |
Defines a column in a table.
<col style="background-color:yellow">
|
<colgroup> |
Groups one or more columns in a table.
<colgroup><col style="background-color:red"></colgroup>
|
<dd> |
Defines a description in a description list.
<dd>Description here</dd>
|
<del> |
Strikes through the text.
<del>Deleted Text</del>
|
<dfn> |
Defines a definition term.
<dfn>HTML</dfn>
|
<dir> |
Defines a directory list (deprecated).
<dir><li>Item 1</li></dir>
|
<div> |
Defines a section of a document.
<div>This is a div section</div>
|
<dl> |
Defines a definition list.
<dl><dt>HTML</dt><dd>A language for web development</dd></dl>
|
<dt> |
Defines a term in a description list.
<dt>HTML</dt>
|
<em> |
Makes text italic (emphasis).
<em>Important Text</em>
|
<embed> |
Inserts external content (like a video).
<embed src="movie.mp4">
|
<fieldset> |
Groups related elements in a form.
<fieldset><legend>Personal Information</legend>Name: <input></fieldset>
|
<font> |
Defines font size, color, and family (deprecated).
<font color="red">Text</font>
|
<footer> |
Defines the footer for a document or section.
<footer>This is the footer</footer>
|
<form> |
Defines an HTML form for user input.
<form action="submit_form.php"></form>
|
<h1> - <h6> |
Defines headings from level 1 (largest) to level 6 (smallest).
<h1>This is a heading 1</h1>
|
<head> |
Defines the head section of a document, which contains metadata.
<head><title>Page Title</title></head>
|
<header> |
Defines a header for a document or section.
<header>Header Content</header>
|
<hr /> |
Creates a horizontal rule (line).
<hr />
|
<html> |
Defines the root element of an HTML document.
<html></html>
|
<i> |
Italicizes text.
<i>Italic Text</i>
|
<iframe> |
Defines an inline frame.
<iframe src="https://example.com"></iframe>
|
<img /> |
Embeds an image.
<img src="image.jpg" alt="Description">
|
<input /> |
Defines an input field.
<input type="text">
|
<ins> |
Defines text that has been inserted into a document.
<ins>Inserted Text</ins>
|
<kbd> |
Defines keyboard input.
<kbd>Ctrl + C</kbd>
|
<label> |
Defines a label for an input element.
<label for="name">Name:</label><input type="text" id="name">
|
<legend> |
Defines a caption for a fieldset element.
<fieldset><legend>Personal Information</legend></fieldset>
|
<li> |
Defines a list item.
<ul><li>Item 1</li><li>Item 2</li></ul>
|
<link /> |
Defines the relationship between a document and an external resource (usually for stylesheets).
<link rel="stylesheet" href="styles.css">
|
<main> |
Specifies the main content of a document.
<main>This is the main content of the page</main>
|
<map> |
Defines an image map, which is an image with clickable areas.
<map name="exampleMap"><area shape="rect" coords="34,44,270,350" href="https://example.com"></map>
|
<mark> |
Defines marked or highlighted text.
<mark>Highlighted Text</mark>
|
<meta /> |
Defines metadata about an HTML document.
<meta charset="UTF-8">
|
<meter> |
Defines a scalar measurement within a known range (e.g., a gauge).
<meter value="2" min="0" max="10">
|
<nav> |
Defines a section of navigation links.
<nav><a href="#home">Home</a><a href="#about">About</a></nav>
|
<noscript> |
Defines alternative content for users who have disabled scripts or have a browser that doesn't support scripts.
<noscript>JavaScript is disabled</noscript>
|
<object> |
Defines an embedded object, such as a video, audio, or another document.
<object data="movie.mp4" type="video/mp4"></object>
|
<ol> |
Defines an ordered (numbered) list.
<ol><li>First item</li><li>Second item</li></ol>
|
<optgroup> |
Defines a group of options within a select element.
<select><optgroup label="Fruit"><option value="apple">Apple</option></optgroup></select>
|
<option> |
Defines an option in a select dropdown.
<select><option value="apple">Apple</option><option value="banana">Banana</option></select>
|
<output> |
Defines the result of a calculation or user action.
<output>Result here</output>
|
<p> |
Defines a paragraph.
<p>This is a paragraph.</p>
|
<param> |
Defines a parameter for an object element.
<object data="movie.swf"><param name="autoplay" value="true"></object>
|
<picture> |
Defines an image with multiple sources (for responsive images).
<picture><source srcset="image.webp" type="image/webp"><img src="image.jpg" alt="Image"></picture>
|
<pre> |
Defines preformatted text (preserves whitespace and line breaks).
<pre>This is preformatted text.</pre>
|
<progress> |
Defines the progress of a task (e.g., loading or downloading).
<progress value="50" max="100">50% Complete</progress>
|
<q> |
Defines a short inline quote.
<q>This is a quote</q>
|
<rp> |
Defines what to show for browsers that do not support Ruby annotations (used in Japanese text).
<rp>(Explanation)</rp>
|
<rt> |
Defines the ruby text (used in Asian typography to provide pronunciation or meaning for characters).
<rt>Ruby Text</rt>
|
<ruby> |
Defines a ruby annotation (used in Japanese text).
<ruby>漢字<rt>Kanji</rt></ruby>
|
<s> |
Defines text that is no longer accurate or relevant (strikethrough).
<s>Incorrect Text</s>
|
<samp> |
Defines sample output from a computer program.
<samp>Output: 42</samp>
|
<script> |
Defines client-side JavaScript code.
<script>console.log('Hello World');</script>
|
<section> |
Defines a section of a document, such as a chapter or group of related content.
<section>This is a section</section>
|
<select> |
Defines a dropdown menu.
<select><option value="apple">Apple</option></select>
|
<small> |
Defines smaller text.
<small>This is smaller text</small>
|
<source> |
Specifies multiple media resources for elements like video and audio.
<video><source src="movie.mp4" type="video/mp4"><source src="movie.ogg" type="video/ogg"></video>
|
<span> |
Defines a section in a document, often used for styling inline text.
<span style="color:red">Red Text</span>
|
<strong> |
Defines important text (bold).
<strong>This is strong text</strong>
|
<style> |
Defines CSS styles for a document.
<style>body { background-color: lightblue; }</style>
|
<sub> |
Defines subscript text.
<sub>X</sub>
|
<summary> |
Defines a summary for a details element.
<details><summary>Click to expand</summary>More details here</details>
|
<sup> |
Defines superscript text.
<sup>2</sup>
|
<table> |
Defines a table.
<table><tr><td>Row 1, Cell 1</td></tr></table>
|
<tbody> |
Groups the body content in a table.
<table><tbody><tr><td>Row 1</td></tr></tbody></table>
|
<td> |
Defines a cell in a table.
<table><tr><td>Data</td></tr></table>
|
<template> |
Defines a template that can be reused later in the document.
<template><p>This is a template</p></template>
|
<textarea> |
Defines a multi-line text input control.
<textarea rows="4" cols="50">Enter text here</textarea>
|
<tfoot> |
Groups the footer content in a table.
<table><tfoot><tr><td>Footer</td></tr></tfoot></table>
|
<th> |
Defines a header cell in a table.
<table><tr><th>Header 1</th><th>Header 2</th></tr></table>
|
<thead> |
Groups the header content in a table.
<table><thead><tr><th>Header</th></tr></thead></table>
|
<time> |
Defines a specific time (or range of time).
<time datetime="2025-01-01">January 1, 2025</time>
|
<title> |
Defines the title of the document (displayed in the browser's title bar or tab).
<title>My Website</title>
|
<tr> |
Defines a row in a table.
<table><tr><td>Cell 1</td><td>Cell 2</td></tr></table>
|
<track> |
Defines text tracks for `<video>` or `<audio>` elements (such as captions or subtitles).
<video><track src="subtitles_en.vtt" kind="subtitles" srclang="en" label="English"></video>
|
<u> |
Defines text that should be underlined.
<u>Underlined Text</u>
|
<ul> |
Defines an unordered (bulleted) list.
<ul><li>Item 1</li><li>Item 2</li></ul>
|
<var> |
Defines a variable in a mathematical expression or a programming context.
<var>X</var> <var>Y</var>
|
<video> |
Defines a video or movie.
<video controls><source src="movie.mp4" type="video/mp4">Your browser does not support the video tag.</video>
|
<wbr> |
Defines a word break opportunity (indicates where the browser should break a word if necessary).
<wbr>
|
<z> |
Defines a sample output from a program or command line (usually used for coding or terminal outputs).
<z>Sample output</z>
|