HTML and CSS Reference
In-Depth Information
HTML
Archaeology
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
English.
This j ust
means the
HTM L 4.01
stand ard
is pub licly
availa ble.
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"
"http://www.w3.org/TR/html4/strict.dtd">
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.
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
And it has a URL pointing t o the
definition of XHTML 1.1.
For more on XHTML , check out the appen dix.
Search WWH ::




Custom Search