Web browser HTML support

This document is a section of the web browser standards support document. It includes detailed information about HTML support in major web browsers.

Pick browsers to display

Table of Contents

  1. About
  2. Specifications
  3. (X)HTML standards and maturing drafts
    1. HTML 4.01
    2. XHTML 1.0
    3. XHTML 1.1

About

Up

HTML is the primary language that makes up a webpage. It puts together all of the text, images, scripts, and other content.

In most web browsers, you can view this page's HTML code by going to the View menu and selecting “Page Source” or “Source”.

Specifications

Up

(X)HTML standards and maturing drafts

Up

HTML 4.01

Up

The following are the elements and attributes that make up the structure of an HTML document.

The attribute collections at the bottom reflect the browser's best support for those attributes. Support may be weaker in some elements. See the specific element information for details.

HTML 4.01
Feature Opera 8.5 Opera 9
a
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
accesskey I I
charset Y Y
coords Y Y
href Y Y
hreflang I I
name Y Y
onblur Y Y
onfocus Y Y
rel I I
rev I I
shape 90% 90%
tabindex Y Y
target I I
type Y Y
abbr
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 50% 50%
acronym
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 50% 50%
address
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
area
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
accesskey Y Y
alt Y Y
coords Y Y
href Y Y
nohref Y Y
onblur Y Y
onfocus Y Y
shape 90% 90%
tabindex Y Y
target I I
b
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
base
(General) Y Y
href Y Y
target I I
bdo
(General) Y Y
Core attributes 88% 88%
dir Y Y
lang 75% 75%
big
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
blockquote
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
cite I I
body
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
onload Y Y
onunload Y Y
br
(General) Y Y
Core attributes 88% 88%
button
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
accesskey I I
disabled Y Y
name Y Y
onblur Y Y
onfocus Y Y
tabindex Y Y
type Y Y
value Y Y
caption
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
cite
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
code
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
col
(General) Y Y
Core attributes 75% 75%
Event attributes 50% 50%
I18n attributes 50% 50%
Cell alignment attributes 68% 68%
span Y Y
width I I
colgroup
(General) Y Y
Core attributes 75% 75%
Event attributes 50% 50%
I18n attributes 50% 50%
Cell alignment attributes 68% 68%
span Y Y
width I I
dd
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
del
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
cite I I
datetime I I
dfn
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
div
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
dl
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
dt
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
em
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
fieldset
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
form
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
accept Y Y
accept-charset Y Y
action Y Y
enctype Y Y
method Y Y
name Y Y
onreset Y Y
onsubmit Y Y
target I I
frame
(General) Y Y
Core attributes 50% 50%
frameborder 83% 83%
longdesc I I
marginheight Y Y
marginwidth Y Y
name Y Y
noresize Y Y
scrolling Y Y
src Y Y
frameset
(General) Y Y
Core attributes 50% 50%
cols Y Y
onload Y Y
onunload Y Y
rows Y Y
h1
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
h2
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
h3
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
h4
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
h5
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
h6
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
head
(General) Y Y
I18n attributes Y Y
profile I I
hr
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
html
(General) Y Y
I18n attributes 75% 75%
i
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
iframe
(General) Y Y
Core attributes 88% 88%
align 80% 80%
frameborder Y Y
height Y Y
longdesc I I
marginheight Y Y
marginwidth Y Y
name Y Y
scrolling Y Y
src Y Y
width Y Y
img
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 50% 50%
alt Y Y
height Y Y
ismap Y Y
longdesc I I
name Y Y
src Y Y
usemap Y Y
width Y Y
input
(General) Y Y
Core attributes 88% 88%
Event attributes 90% Y
I18n attributes 50% 50%
accept Y Y
accesskey Y Y
alt Y Y
checked Y Y
disabled Y Y
ismap Y Y
maxlength I I
name Y Y
onblur I Y
onchange I I
onfocus I Y
onselect I I
readonly I I
size I I
src Y Y
tabindex Y Y
type Y Y
usemap Y Y
value Y Y
ins
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
cite I I
datetime I I
kbd
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
label
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
accesskey Y Y
for Y Y
onblur Y Y
onfocus Y Y
legend
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
accesskey I I
li
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
link
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
charset Y Y
href Y Y
hreflang I I
media I I
rel I I
rev I I
target Y Y
type Y Y
map
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
name Y Y
meta
(General) Y Y
I18n attributes 75% 75%
content Y Y
http-equiv Y Y
name Y Y
scheme Y Y
noframes
(General) Y Y
Core attributes 75% 75%
Event attributes Y Y
I18n attributes 75% 75%
noscript
(General) Y Y
Core attributes 50% 50%
Event attributes Y Y
I18n attributes 50% 50%
object
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 50% 50%
archive I I
classid Y Y
codebase Y Y
codetype Y Y
data Y Y
declare Y Y
height Y Y
name Y Y
standby I I
tabindex I I
type Y Y
usemap Y Y
width Y Y
ol
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
optgroup
(General) Y Y
Core attributes 50% 75%
Event attributes 40% 40%
I18n attributes 50% 50%
disabled Y Y
label Y Y
option
(General) Y Y
Core attributes 50% 75%
Event attributes 40% 40%
I18n attributes 50% 50%
disabled Y Y
label I I
selected Y Y
value Y Y
p
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
param
(General) Y Y
id Y Y
name Y Y
type Y Y
value Y Y
valuetype Y Y
pre
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
q
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
cite I I
samp
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
script
(General) I Y
charset Y Y
defer I I
src Y Y
type Y Y
select
(General) Y Y
Core attributes 88% 88%
Event attributes 85% 85%
I18n attributes 50% 50%
disabled Y Y
multiple Y Y
name Y Y
onblur Y Y
onchange I I
onfocus Y Y
size Y Y
tabindex Y Y
small
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
span
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
strong
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
style
(General) I Y
I18n attributes 75% 75%
media I I
title Y Y
type Y Y
sub
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
sup
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
table
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
border Y Y
cellpadding Y Y
cellspacing Y Y
frame Y Y
rules Y Y
summary I I
width Y Y
tbody
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
Cell alignment attributes 68% 68%
td
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
Cell alignment attributes 68% 68%
abbr I I
axis I I
colspan I I
headers I I
rowspan Y Y
scope I I
textarea
(General) Y Y
Core attributes 88% 88%
Event attributes 95% 95%
I18n attributes 50% 75%
accesskey Y Y
cols Y Y
disabled Y Y
name Y Y
onblur Y Y
onchange Y Y
onfocus Y Y
onselect Y Y
readonly Y Y
rows Y Y
tabindex Y Y
tfoot
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
Cell alignment attributes 68% 68%
th
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
Cell alignment attributes 68% 68%
abbr I I
axis I I
colspan I I
headers I I
rowspan Y Y
scope I I
thead
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
Cell alignment attributes 68% 68%
title
(General) Y Y
I18n attributes 75% 75%
tr
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
Cell alignment attributes 68% 68%
tt
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
ul
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
var
(General) Y Y
Core attributes 88% 88%
Event attributes Y Y
I18n attributes 75% 75%
Core attributes
class Y Y
id Y Y
style Y Y
title I I
Event attributes
onclick Y Y
ondblclick Y Y
onkeydown Y Y
onkeypress Y Y
onkeyup Y Y
onmousedown Y Y
onmousemove Y Y
onmouseout Y Y
onmouseover Y Y
onmouseup Y Y
Internationalization (i18n) attributes
dir Y Y
lang I I
Cell alignment attributes
align 83% 83%
char I I
charoff I I
valign 90% 90%
SGML inheritance
Whitespace handling I I
Comments I I
CDATA Sections Y Y
RCDATA Sections N N
IGNORE Sections Y Y
INCLUDE Sections N N
TEMP Sections N N
Minimized attribute form Y Y
Null end tags N N
Unclosed tags N N
Empty start tags N N
Empty end tags N N

XHTML 1.0

Up

The following are features of XHTML 1.0 that are not covered in the sections above.

Many of the changes were simply to make the language syntax more rigid. Aside from the well-formedness requirement, such added restrictions are not listed since they relate mostly to document authorship rather than browser handling, which is covered by well-formedness point.

XHTML 1.0 changes
Feature Opera 8.5 Opera 9
HTML in XML
(General) Y Y
Documents must be well-formed
(General) Y Y
Media types
application/xhtml+xml Y Y
application/xml Y Y
text/xml Y Y
DTD changes
End tag changes I I

XHTML 1.1

Up

The following are features of XHTML 1.1 that are not covered in the sections above.

XHTML 1.1 changes
Feature Opera 8.5 Opera 9
rb
(General) I I
Core attributes 75% 75%
rbc
(General) I I
Core attributes 75% 75%
rp
(General) I I
Core attributes 75% 75%
rt
(General) I I
Core attributes 75% 75%
rbspan N N
rtc
(General) I I
Core attributes 75% 75%
ruby
(General) I I
Core attributes 75% 75%