HTML tags reference

Click on any tag for more info. For tags that are deprecated it will be mentioned. All tags are supported in all of the major web browsers (Internet Explorer, Firefox, Opera, Safari, Chrome) unless otherwise specified.

Tag Description
<!-- --> Creates a comment in the code
<!DOCTYPE> Specifies which document type an HTML/XHTML document will be
<a> Creates a link
<abbr> Sets an abbreviation. NOTE: Not supported in IE 6 and earlier versions of IE.
<acronym> Sets an acronym. NOTE: Not supported in IE 5.5 and earlier versions of IE.
<address> Sets data to appear as an address
<applet> Deprecated. Not supported in Safari or Chrome. Places an applet on a webpage.
<area> Sets an area inside an image map
<b> Makes text bold
<base> Sets a base URL for the links on a page
<basefont> Deprecated. Sets a base font for the text on a page. NOTE: Only works in Internet Explorer
<bdo> Sets the way text will be displayed (left to right, right to left) NOTE: Not supported in Safari version 2 and earlier versions of Safari
<big> Makes text bigger
<blockquote> Displays text as a long quotation
<body> Signifies the beginning of the body of an HTML document
<br> Skips a line
<button> Displays a button
<caption> Sets a caption for a table
<center> Deprecated. Centers content.
<cite> Sets text as a citation
<code> Sets text to appear as computer code
<col> Defines attributes for table columns 
<colgroup> Sets attributes for table columns
<dd> Sets the description for a definition in a definition list
<del> Sets text to appear as deleted (with a line through it)
<dir> Deprecated. Creates a directory list.
<div> Sets apart a section of a webpage
<dfn> Sets text as a definition term in a definition list
<dl> Begins a definition list
<dt> Creates a term in a definition list
<em> Sets text to appear as emphasized
<fieldset> Displays a fieldset around a form
<font> Deprecated. Sets the size, color, and font of text
<form> Signifies the beginning of a form
<frame> Denotes a frame
<frameset> Specifies that a page will be composed of frames
<h1> to <h6> Sets text as a heading (the lower the number, the bigger the text)
<head> Signifies the beginning of the head section of a document
<hr> Creates a horizontal line on a page
<html> Signifies the beginning of an HTML document
<i> Makes text italic
<iframe> Displays an inline frame
<img> Displays an image
<input> Displays an input field in a form
<ins> Displays inserted text
<kbd> Displays text as keyboard text
<label> Sets a label for a form element. NOTE: Not supported by Safari 2 and earlier versions of Safari
<legend> Sets a title for a fieldset that sorrounds a form
<li> Creates an item in a list
<link> Specifies a resource reference
<map> Creates an image map
<menu> Deprecated. Creates a menu list
<meta> Specifies information about a document
<noframes> Specifies what should be displayed if a browser does not support frames
<noscript> Specifies what should be displayed if a browser does not support scripting
<object> Displays an embedded object
<ol> Creates an ordered list
<optgroup> Creates an option group
<option> Creates an option in a drop down list
<p> Creates a paragraph
<param> Sets a parameter for an object
<pre> Displays preformatted text
<q> Displays text as a short quotation. NOTE: Works in Internet Explorer, but incorrectly.
<s> Deprecated. Displays text with a strikethrough
<samp> Displays text as computer code
<script> Places a script on a page
<select> Creates a drop down list
<small> Displays small text
<span> Sets apart a section of a document
<strike> Deprecated. Displays text with a strikethrough
<strong> Displays strong text (very similar to bold)
<style> Creates a style definition
<sub> Makes text appear subscripted
<sup> Makes text appear superscripted
<table> Creates a table
<tbody> Creates a table body
<td> Creates a table cell
<textarea> Creates a textarea
<tfoot> Creates a table footer
<th> Creates a heading for a table
<thead> Creates a table header
<title> Sets the title of a page
<tr> Creates a row in a table
<tt> Displays text as teletyped
<u> Deprecated. Displays underlined text
<ul> Creates an unordered list
<var> Creates a variable
© Copyright 2009-2010 Landofcode.com
Terms of use | Privacy policy | Copyright information