HTML and CSS Reference
We did some digging and found some old HTML 4.01 and XHTML 1.1
pages. These pages use a doctype, at the very top of the HTML file, to tell
the browser which version of HTML they're using. We've snipped out a
couple of doctypes for you to look at. Check them out below…
This part says we're
using HTML ve rsion
4.01 and that HTML
markup is writt en in
This j ust
HTM L 4.01
is pub licly
This mea ns
tha t <ht ml>
is t he ro ot
(fir st) e lemen t
in y our p age.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
N otice that this is NOT an HT ML
el ement . It h as a “ !” aft er th e “<”
This poin ts to a file
that ide ntifies this
particula r standard.
at the beginn ing, w hich t ells y ou
t his is somet hing d iffere nt.
It's still a version of
HTML— an XML version.
Just like t he HT ML D OCTY PE,
this is a p ublic d ocume nt ty pe.
PUBLIC "-//W3C//DTD XHTML 1.1//EN"
And it has a URL pointing t o the
definition of XHTML 1.1.
For more on XHTML , check out the appen dix.