This reference contains an alphabetical list of the most important and commonly used HTML elements. It serves as a quick dictionary for you to look up what a specific tag does while you are building your websites.
| Tag | Description |
|---|---|
<a> | Defines a hyperlink. Used to link from one page to another. |
<abbr> | Defines an abbreviation or an acronym. |
<address> | Defines contact information for the author/owner of a document. |
<area> | Defines a clickable area inside an image map. |
<article> | Defines an independent, self-contained article. |
<aside> | Defines content aside from the page content (like a sidebar). |
<audio> | Defines sound content (like music or an audio stream). |
<b> | Defines bold text without any extra importance. |
<base> | Specifies the base URL/target for all relative URLs in a document. |
<blockquote> | Defines a section that is quoted from another source. |
<body> | Defines the document's body. Contains all visible content. |
<br> | Inserts a single line break. |
<button> | Defines a clickable button. |
<canvas> | Used to draw graphics, on the fly, via scripting (usually JavaScript). |
<caption> | Defines a table caption. |
<code> | Defines a piece of computer code. |
<col> | Specifies column properties for each column within a <colgroup>. |
<colgroup> | Specifies a group of one or more columns in a table for formatting. |
<details> | Defines additional details that the user can view or hide on demand. |
<div> | Defines a global block-level section or container in a document. |
<em> | Defines emphasized text (typically rendered as italics). |
| Tag | Description |
|---|---|
<fieldset> | Groups related elements in a form and draws a box around them. |
<figcaption> | Defines a caption for a <figure> element. |
<figure> | Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc. |
<footer> | Defines a footer for a document or section. |
<form> | Defines an HTML form for user input. |
<h1> to <h6> | Defines HTML headings. <h1> is the most important, <h6> is the least. |
<head> | Contains metadata/information for the document (not visible to users). |
<header> | Defines a header for a document or section. |
<hr> | Defines a thematic change in the content (usually rendered as a horizontal line). |
<html> | Defines the root of an HTML document. |
<i> | Defines text in an alternate voice or mood (typically rendered as italic). |
<iframe> | Defines an inline frame, used to embed another document within the current HTML document. |
<img> | Defines an image. |
<input> | Defines an input control (like text fields, checkboxes, or buttons). |
<kbd> | Defines keyboard input (text users need to type). |
<label> | Defines a label for an <input> element. |
<legend> | Defines a caption for a <fieldset> element. |
<li> | Defines a list item inside an ordered or unordered list. |
<link> | Defines the relationship between a document and an external resource (most used to link to CSS). |
<main> | Specifies the main content of a document. |
<map> | Defines an image map (an image with clickable areas). |
<mark> | Defines marked/highlighted text. |
<meta> | Defines metadata about an HTML document (SEO, charset, viewport). |
| Tag | Description |
|---|---|
<nav> | Defines a set of navigation links. |
<noscript> | Defines an alternate content for users that have disabled scripts in their browser. |
<ol> | Defines an ordered (numbered) list. |
<optgroup> | Defines a group of related options in a drop-down list. |
<option> | Defines an option in a drop-down list. |
<p> | Defines a paragraph. |
<picture> | Defines a container for multiple image resources. |
<pre> | Defines preformatted text (preserves spaces and line breaks). |
<script> | Defines a client-side script (usually JavaScript). |
<section> | Defines a distinct section in a document. |
<select> | Defines a drop-down list. |
<source> | Defines multiple media resources for media elements (<video> and <audio>). |
<span> | Defines a global inline container/section in a document. |
<strong> | Defines important text (typically rendered as bold). |
<style> | Defines style information (CSS) for a document. |
<svg> | Defines a container for SVG graphics. |
<table> | Defines a HTML table. |
<tbody> | Groups the body content in a table. |
<td> | Defines a standard data cell in a table. |
<textarea> | Defines a multiline input control (text area). |
<tfoot> | Groups the footer content in a table. |
<th> | Defines a header cell in a table. |
<thead> | Groups the header content in a table. |
<time> | Defines a specific time (or datetime). |
<title> | Defines a title for the document (shown in browser tab). |
<tr> | Defines a row in a table. |
<u> | Defines some text that is unarticulated and styled differently from normal text (typically rendered as underlined). |
<ul> | Defines an unordered (bulleted) list. |
<video> | Defines a video or movie. |