1. html
  2. /headings

HTML Headings

Specifies the heading in a document. Numbered 1-6, 1 is the largest and 6 the smallest.


Example

Try it out

The HTML language was created in 1989 by Tim Berners-Lee for use on his newly created World Wide Web. It is based on SGML (Standard Generalized Mark-up Language). The first specification was released in the summer of 1991. After going through several changes, we now have the current version, 4.01. The "standards" for the HTML language are maintained by the World Wide Web Consortium (W3C). (They are not actually "standards"; rather they are "recommendations". They are treated, however, as standards by most Web designers.)

The reference on this Web site lists all the elements ("tags") for the HTML 4.01 language. Included are all available attributes, browser compatibility, and important notes.

The name of each element is linked to the W3C recommendations for the specified element. Deprecated elements and attributes are noted on each page and listed here in italics. You should avoid those elements and use alternatives. Most deprecations are related to presentation issues and can be handled using style sheets.

The examples shown for each element do not display the code as it would be rendered on a computer screen. Their main purpose is to show the proper formatting of the element.

The opening element tag tells the user agent (e.g., browser) where to begin using the code. The closing element tag tells it where to stop using it. I have used the notation "opt" to designate the closing element is optional. If the element shows only one tag it is called an empty tag and there is no closing tag.

Browser compatibility is also shown for each element, using the following code: NN = Netscape (includes Firefox and Mozilla); IE = Microsoft Internet Explorer.

Each HTML element also includes XHTML specifications, if necessary. Unless otherwise noted, all elements are usable in XHTML 1.0. See also the "HTML Compatibility Guidelines" for XHTML.

References

WebReference.com HTML Section W3C Index of Attributes WebDeveloper.com HTML Forums A History of HTML

<table> <tr> <td colspan="3" > <strong>HTML 4.01 Tag List</strong> </td> </tr> <tr> <td> <a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/comment.html"><!-- ... --></a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/doctype.html"><!DOCTYPE></a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/a.html">a</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/abbr.html">abbr</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/acronym.html">acronym</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/address.html">address</a> <p>

<em><a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/applet.html">applet</a></em> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/area.html">area</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/b.html">b</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/base.html">base</a> <p>

<em><a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/basefont.html">basefont</a></em> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/bdo.html">bdo</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/big.html">big</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/blockquote.html">blockquote</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/body.html">body</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/br.html">br</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/button.html">button</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/caption.html">caption</a> <p>

<em><a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/center.html">center</a></em> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/cite.html">cite</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/code.html">code</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/col.html">col</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/colgroup.html">colgroup</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/dd.html">dd</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/del.html">del</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/dfn.html">dfn</a> <p>

<em><a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/dir.html">dir</a></em> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/div.html">div</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/dl.html">dl</a> </td> <td> <a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/dt.html">dt</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/em.html">em</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/fieldset.html">fieldset</a> <p>

<em><a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/font.html">font</a></em> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/form.html">form</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/frame.html">frame</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/frameset.html">frameset</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/h1-h6.html">h1-h6</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/head.html">head</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/hr.html">hr</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/html.html">html</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/i.html">i</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/iframe.html">iframe</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/img.html">img</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/input.html">input</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/ins.html">ins</a> <p>

<em><a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/isindex.html">isindex</a></em> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/kbd.html">kbd</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/label.html">label</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/legend.html">legend</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/li.html">li</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/link.html">link</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/map.html">map</a> <p>

<em><a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/menu.html">menu</a></em> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/meta.html">meta</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/noframes.html">noframes</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/noscript.html">noscript</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/object.html">object</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/ol.html">ol</a> </td> <td> <a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/optgroup.html">optgroup</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/option.html">option</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/p.html">p</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/param.html">param</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/pre.html">pre</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/q.html">q</a> <p>

<em><a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/s.html">s</a></em> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/samp.html">samp</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/script.html">script</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/select.html">select</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/small.html">small</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/span.html">span</a> <p>

<em><a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/strike.html">strike</a></em> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/strong.html">strong</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/style.html">style</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/sub.html">sub</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/sup.html">sup</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/table.html">table</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/tbody.html">tbody</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/td.html">td</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/textarea.html">textarea</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/tfoot.html">tfoot</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/th.html">th</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/thead.html">thead</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/title.html">title</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/tr.html">tr</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/tt.html">tt</a> <p>

<em><a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/u.html">u</a></em> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/ul.html">ul</a> <p>

<a href="https://web.archive.org/web/20090901034500/http://www.webreference.com/html/reference/specs/var.html">var</a> </td> </tr> </table>