HomeMathComputingArtsWordsLiteratureMusictwitter facebook webfeed

HTML5 Tags

Advertise Here For Profit

Xah Lee, 2011-06-26, 2011-07-01

This page is a COMPLETE list of HTML5 tags. Those marked with a dagger† are new in html5.

HTML Structure Tags

headmeta info
html
metameta tag used inside “head” tag
titledocument title, used inside “head” tag
basebase URL
body

Page Structure

nav†navigation markup
header†page's header
footer†page's footer
aside†Sidebar
article†Enclose a article. (e.g. essay)
section†section markup

See: html5 tags test page: header, footer, nav, article, section, aside.

Title/Section Heading

h1headline 1
h2headline 2
h3headline 3
h4headline 4
h5headline 5
h6headline 6
hgroup†Used to group one of “h1” to “h6”.

Text Block

divgeneric block markup. Use with css
pparagraph
premonospace block
blockquotequote passages, excerpt
ulunordered list
olordered list
lilist item. (use with “ul” or “ol”)
hrhorizontal rule

Table

tabletable
captiontable caption
tdtable cell
trtable row
thtable header
tbodytable body
theadtable header
tfoottable footer

HTML Table Examples

Forms

form
buttonRender as Button. Used together with javascript.
inputGeneric input (text, radio box, checkbox, submit button)
textarealarge text input (e.g. comment)
selectmenu.
optionMenu item. Used with “select”.
optgroupMenu item group label.
labelA label for a form input

HTML Form Example

Inline Text Markup

spangeneric text markup. Use with css
ememphasize
bbold
iitalic
sstrike-thru
delstrike-thru. Meaning “deleted text”.
insrenders newly inserted text (in contrast to “del”)
smallsmaller
strongemphasis
supsuperscript
subsubscript
dfndefinition term
codecomputer code
varvariable
sampsample code
kbdkeyboard
qshort inline quote. “q” example
citecitation

See: test page for HTML text style Tags.

alink (anchor)

Misc

brline break

Image

img
figcaption†caption for images
figure†group images
mapImage Map example
areaimage map. Used inside “map” tag.

See: HTML5 “figure” & “figurecaption” example.

Audio, Video, Special Objects

scriptSee: Javascript Basics.
noscripte.g. <noscript>displayed when javascript is off</noscript>
objectembedded object. Object example.
paramparameter, used with “object” tag
embed†interactive content or plugin
video†video. See Video/Audio Example
iframeembed a page; inner window. Iframe example
canvas†interactive graphics, games

I'll be adding a example each day of the following new tags.

abbre.g. <abbr title="eXtensible Markup Language">XML</abbr>; abbr example
addressmarkup for address. (e.g. street, city, etc.)
audio†For embedding sonud files.
bdotext direction
col? table columns
colgroup? table columns
command†? command button
datalist†? dropdown list
dd? definition description
details†?
dl?
dt?
fieldset?
legendtitle in a fieldset
keygen†?
link?
mark†? marked text
menu? menu list
meter†?
output†?
progress†progress bar
rp†ruby annotation
rt†ruby annotation
ruby†ruby annotation (pronunciation for asian lang)
source†? media resources
style?
summary†? header of a "detail" element
time†? date/time
wbr†? possible line-break

Obsolete HTML4 Tags

acronymuse “abbr”
appletuse “embed” or “object”
basefontuse css
biguse css
centeruse css. See: Centering with CSS.
dirDirectory list. Use “ul”
fontuse css
frameuse css, iframe
framesetuse css, iframe
noframes
strikeuse “s”. See: “s” vs “strike” vs “del”.
ttstands for “teletype”, rendered in monospace font. Use “code”, “samp”, or css.
uunderline. Use css.
xmpuse “pre” with css.

Reference

blog comments powered by Disqus