HyperText Markup Language/Tag List

The following is a list of all elements in HTML 4, in alphabetical order. TODO for the book: update list for HTML5 Click on a element for its description. XHTML 1.0 has the same elements but the attributes differ slightly.

The official list of current standard elements is at Index of the HTML 5 Elements[1].

You can also view a list of standard attributes

  • a
  • abbr
  • acronym – in most instances use abbr instead. See The Accessibility Hat Trick: Getting Abbreviations Right for some advice on using these elements.
  • address
  • (applet – deprecated, use object instead.)
  • area
  • b – use strong or the CSS property font-weight set to the value bold instead.
  • base
  • (basefont – deprecated, set the CSS property font on the body element instead.)
  • bdo
  • bgsound Used for inserting background sounds.
  • big – the CSS property font-size set to the value larger or a percentage greater than 100% may be more appropriate.
  • blink used to make the text blink (Depreciated).
  • blockquote
  • body Identifies the main content of a Web Page.
  • br – use the p element for paragraphs. Use the CSS properties margin and padding to increase or decrease the space between paragraphs. Consider using structured elements such as lists or tables instead.
  • button
  • caption
  • (center – deprecated, use a div element instead and set the CSS property text-align to the value center.)
  • cite
  • code
  • col
  • colgroup
  • dd
  • del
  • dfn
  • (dir – deprecated, use ul.)
  • div
  • dl
  • dt
  • em
  • fieldset
  • (font – deprecated, use the CSS property font. For finer control use the CSS properties font-style, font-variant, font-weight, font-size, line-height and font-family.)
  • form Creates a form.
  • frame Specifies information for one frame.
  • frameset – avoid using frames if possible.
  • head Contains information about a Web Page.
  • hr
  • html
  • h1
  • h2
  • h3
  • h4
  • h5
  • h6
  • i – use em or the CSS property font-style set to the value italic instead.
  • iframe
  • img
  • input
  • ins
  • (isindex – deprecated, use input.)
  • kbd
  • label
  • legend
  • li
  • link
  • map
  • (menu – deprecated, use ul.)
  • meta
  • nobr is a proprietary element type supported by some web browsers. It is used to prevent automatic wrapping of lines.
  • noframes
  • noscript Specifies what should be done if there is no javascript found on the browser.
  • object
  • ol
  • optgroup
  • option
  • p
  • param
  • pre
  • q
  • (s – deprecated, use del to indicate deleted text. If the text isn't 'deleted' use the CSS property text-decoration set to the value line-through.)
  • samp
  • script
  • select
  • small – the CSS property font-size set to the value smaller or a percentage less than 100% may be more appropriate.
  • span
  • (strike – deprecated, use del to indicate deleted text. If the text isn't 'deleted' use the CSS property text-decoration set to the value line-through.)
  • strong
  • style
  • sub
  • sup
  • table
  • tbody
  • td
  • textarea
  • tfoot
  • th
  • thead
  • title
  • tr
  • tt
  • (u – deprecated, use the CSS property text-decoration set to the value underline instead.)
  • ul
  • var

References

edit