You are on page 1of 16

Tag

Description

<!--...-->

Defines a comment

<!DOCTYPE>

Defines the document type

<a> Defines a hyperlink


<abbr>

Defines an abbreviation or an acronym

<acronym> Not supported in HTML5. Use <abbr> instead.


Defines an acronym
<address> Defines contact information for the author/owner of a document
<applet>

Not supported in HTML5. Use <embed> or <object> instead.

Defines an embedded applet


<area>

Defines an area inside an image-map

<article>

Defines an article

<aside>

Defines content aside from the page content

<audio>

Defines sound content

<b> Defines bold text


<base>

Specifies the base URL/target for all relative URLs in a document

<basefont> Not supported in HTML5. Use CSS instead.


Specifies a default color, size, and font for all text in a document
<bdi>Isolates a part of text that might be formatted in a different direction from
other text outside it
<bdo>

Overrides the current text direction

<big>Not supported in HTML5. Use CSS instead.


Defines big text
<blockquote>
<body>

Defines a section that is quoted from another source

Defines the document's body

<br> Defines 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

<center>

Not supported in HTML5. Use CSS instead.

Defines centered text


<cite>

Defines the title of a work

<code>

Defines a piece of computer code

<col> Specifies column properties for each column within a <colgroup> element
<colgroup> Specifies a group of one or more columns in a table for formatting
<datalist>

Specifies a list of pre-defined options for input controls

<dd> Defines a description/value of a term in a description list


<del>Defines text that has been deleted from a document
<details>

Defines additional details that the user can view or hide

<dfn>

Represents the defining instance of a term

<dialog>

Defines a dialog box or window

<dir> Not supported in HTML5. Use <ul> instead.


Defines a directory list
<div>Defines a section in a document
<dl> Defines a description list
<dt> Defines a term/name in a description list
<em>Defines emphasized text
<embed>

Defines a container for an external (non-HTML) application

<fieldset>

Groups related elements in a form

<figcaption>

Defines a caption for a <figure> element

<figure>

Specifies self-contained content

<font>

Not supported in HTML5. Use CSS instead.

Defines font, color, and size for text


<footer>

Defines a footer for a document or section

<form>

Defines an HTML form for user input

<frame>

Not supported in HTML5.

Defines a window (a frame) in a frameset

<frameset> Not supported in HTML5.


Defines a set of frames
<h1> to <h6>

Defines HTML headings

<head>

Defines information about the document

<header>

Defines a header for a document or section

<hr> Defines a thematic change in the content


<html>
<i>

Defines the root of an HTML document

Defines a part of text in an alternate voice or mood

<iframe>

Defines an inline frame

<img>

Defines an image

<input>

Defines an input control

<ins> Defines a text that has been inserted into a document


<kbd>

Defines keyboard input

<keygen>

Defines a key-pair generator field (for forms)

<label>

Defines a label for an <input> element

<legend>

Defines a caption for a <fieldset> element

<li>

Defines a list item

<link>
Defines the relationship between a document and an external
resource (most used to link to style sheets)
<main>

Specifies the main content of a document

<map>

Defines a client-side image-map

<mark>

Defines marked/highlighted text

<menu>

Defines a list/menu of commands

<menuitem>
a popup menu

Defines a command/menu item that the user can invoke from

<meta>

Defines metadata about an HTML document

<meter>

Defines a scalar measurement within a known range (a gauge)

<nav>

Defines navigation links

<noframes> Not supported in HTML5.

Defines an alternate content for users that do not support frames


<noscript> Defines an alternate content for users that do not support clientside scripts
<object>

Defines an embedded object

<ol> Defines an ordered list


<optgroup> Defines a group of related options in a drop-down list
<option>

Defines an option in a drop-down list

<output>

Defines the result of a calculation

<p> Defines a paragraph


<param>

Defines a parameter for an object

<pre>

Defines preformatted text

<progress> Represents the progress of a task


<q> Defines a short quotation
<rp> Defines what to show in browsers that do not support ruby annotations
<rt> Defines an explanation/pronunciation of characters (for East Asian
typography)
<ruby>
<s>

Defines a ruby annotation (for East Asian typography)

Defines text that is no longer correct

<samp>

Defines sample output from a computer program

<script>

Defines a client-side script

<section>

Defines a section in a document

<select>

Defines a drop-down list

<small>

Defines smaller text

<source>
<audio>)

Defines multiple media resources for media elements (<video> and

<span>

Defines a section in a document

<strike>

Not supported in HTML5. Use <del> or <s> instead.

Defines strikethrough text


<strong>

Defines important text

<style>

Defines style information for a document

<sub>

Defines subscripted text

<summary> Defines a visible heading for a <details> element


<sup>

Defines superscripted text

<table>

Defines a table

<tbody>

Groups the body content in a table

<td> Defines a 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 date/time

<title>

Defines a title for the document

<tr> Defines a row in a table


<track>

Defines text tracks for media elements (<video> and <audio>)

<tt> Not supported in HTML5. Use CSS instead.


Defines teletype text
<u> Defines text that should be stylistically different from normal text
<ul> Defines an unordered list
<var>

Defines a variable

<video>

Defines a video or movie

<wbr>

Defines a possible line-break

Related

HTML5 <video> Tag


HTML

HTML Tags
<!--...-->
<!doctype>
<a>
<abbr>
<address>
<area>
<article>
<aside>
<audio>
<b>
<base>
<bdi>
<bdo>
<blockquote>
<body>
<br>
<button>
<canvas>
<caption>
<cite>
<code>
<col>
<colgroup>
<data>

<datalist>
<dd>
<del>
<details>
<dfn>
<dialog>
<div>
<dl>
<dt>
<em>
<embed>
<fieldset>
<figcaption>
<figure>
<footer>
<form>
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
<head>
<header>
<hgroup>
<hr>
<html>
<i>

<iframe>
<img>
<input>
<ins>
<kbd>
<keygen>
<label>
<legend>
<li>
<link>
<main>
<map>
<mark>
<menu>
<menuitem>
<meta>
<meter>
<nav>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<progress>

<q>
<rb>
<rp>
<rt>
<rtc>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<template>
<textarea>
<tfoot>
<th>
<thead>
<time>

<title>
<tr>
<track>
<u>
<ul>
<var>
<video>
<wbr>
HTML5 Global Attributes
HTML5 Events
HTML 4 Tags
HTML 5 Tags
HTML Codes/Generators
HTML Templates
HTML Editor
HTML Tutorial
Create a Website

The DTD (Document Type Declaration), this tells your browser which version of
HTML you're using. Make sure you use the right DTD, or your page may display
incorrectly.
<html>...</html>
Standard opening and closing tags for any HTML page. Enclose everything else in
these. Container tag.
<!-- ... -->
A comment whatever you put here will be skipped over by the browser.
<head>...</head>

Starts the header part of your document. Everything between these is mainly
used to help your browser and search engines classify your page. Using this is
optional, but recommended. Container tag.
<title>...</title>
Whatever is between these tags will appear in the blue bar at the top of the
screen.
<meta>
A group of tags that give page and creator information specifically to the search
engines.
<base>
Changes the default link target or relative link URL, useful if the page is read on
another server.
<link>
Allows you to associate stylesheets and a favorites icon to your page.
<body>...</body>
Everything visible on your page goes between these tags. Everything. Container
tag.
Links

<a>...</a>
Makes the enclosed text or image a hyperlink to another file.
Lists

<ol>...</ol>
Creates an ordered list, where each item is numbered in order. Container Tag.
<ul>...</ul>
Creates an unordered list, with each item bulleted. Container Tag.
<li>
Each list item begins with an li, and they are all placed in either an ol or ul.
<dl>...</dl>
Creates a definition list.

<dt>
Creates a definition term.
<dd>
Creates a definition, which appears below its parent term and indented from the
left.
Multimedia

<img>
Places an image on your page
<embed>
Adds a multimedia element directly into your page, allowing your browser to play
it with a plug-in.
<script>...</script>
Adds a script, usually a JavaScript into your page.
<noscript>...</noscript>
Enclose anything you want displayed by browsers that do not support scripts.
Tables

<table>...</table>
Places a table on your page. Container Tag.
<caption>...</caption>
contains the caption of the table, the title of sorts. It will appear across the top
unless specified otherwise. This tag should not be contained in a tr or td.
<tr>...</tr>
starts a new table row. Cells go inside this. Attributes are the same as td's.
<td>...</td>
encloses a table cell. Content goes in these.
<th>...</th>
same as table cells, but with all contents bold and aligned to the centre.

<thead>...</thead>
Defines the header part of a large table. Wrap the tags around the rows/cells you
wish to define as the header.
<tbody>...</tbody>
Defines the main body of a complex table.
<tfoot>...</tfoot>
Wrap this around the footer part of your table.
<colgroup>
Allows you to set attributes for the entire column. Each column has to be defined
sequentially.
Frames

<frameset>...< /frameset>
Starts a new frame layout. When constructing a frame page, no body is used.
Container Tag.
<frame>
Defines a single frame within a frameset.
<noframes>...< /noframes>
If a visitor has an old browser which doesn't support frames you can leave a
message or some content between these tags.
<iframe>...</iframe>
Places an inline or 'floating' frame. This can be placed anywhere on a normal
page, i.e. it doesn't need to be part of a frameset.
Forms

<form>...</form>
Begins a form area. Add in any form elements you want to use between these
tags. Container Tag.
<input>
Allows you to add various user input fields, like text-boxes, checkboxes, radio
buttons, submit and reset buttons, depending on how you set the type attribute.

<textarea>...</textarea>
Adds a multi-lined text area, suitable for input of a larger amount of information
than the single-line text box. Any text added between the tags is placed in the
area when the page loads.
<select>...</select>
Sets up an empty drop-down selection box. You can add choices with the
<option>...</option> tag.
<fieldset>...</fieldset>
Allows you to group form elements together into logical arrangements.
<legend>...</legend>
You can title your fieldsets with this tag.
<label>...</label>
You can make the explanatory text next to a form element into part of the
clickable area with this tag, which makes selecting elements much easier.
Text Formatting

<address>...</address>
Encloses the signature and address of the author, displayed in italics.
<b>...</b>
Makes the enclosed text into bold text.
<big>...</big>
Makes the enclosed text one size bigger.
<blockquote>...</blockquote>
Indents the text in from both sides.
<br>
Stops the current line and goes on to the next.
<center>...</center>
Aligns the surrounded objects (anything from text or images to forms etc.) to the
center.
<cite>...</cite>

Includes a citation, and is usually rendered as italics.


<code>...</code>
If you are including either computer or HTML code into your documents wrap
these around it. It is rendered in small text.
<dfn>...</dfn>
A definition. As usual with these things, rendered in italics.
<div>...</div>
Surround distinct sections of your page in divs, primarily to align them, but many
other attributes are supported and divs can be used to set up layers too.
<em>...</em>
Emphasises the surrounded text, changing it to italics.
<font>...</font>
Sets the font properties for the selected text.
<hx>...</hx>
Sets the text as a heading, with values of h1 (the biggest) to h6 (the smallest).
<hr>
Inserts a grey horizontal line across the page.
<i>...</i>
The default tag for italics.
<kbd>...</kbd>
Implies that the text should be entered on the keyboard. It is rendered monospaced and small.
<nobr>...</nobr>
Tells the enclosed text not to wrap at the edge of the screen, but continue on as
long as it needs.
<wbr>
If you need a line break in a block of text you have set in nobr, add this.
<p>...</p>
Makes the enclosed text a paragraph, with lines skipped at the top and bottom.
<pre>...</pre>

Displays text in fixed-width font and retains the formatting of the original text
(i.e. spaces and line-breaks).
<q>...</q>
Used to mark up short, inline quotations. Some browsers will add quotation
marks around the text.
<s>...</s> (or <strike>...</strike>)
Displays the text with a strike-through.
<samp>...</samp>
Indicates sample output from a form or program. Text is rendered in small font.
<small>...</small>
Makes the enclosed text one size smaller.
<strong>...</strong>
Creates emphasis for the selected text, rendered in bold.
<sub>...</sub>
Renders the text in subscript, which is words under the normal text. For example:
this
<sup>...</sup>
The sister tag to <sub> above, this renders text in superscript. Like this
<tt>...</tt>
Renders text in fixed-width, mono-spaced font; like an old typewriter.
<u>...</u>
Displays the surrounded text underlined.

You might also like