HTML and CSS Reference
In-Depth Information
The structure of an XHTML document is pretty much the same with the exception of a
different <!DOCTYPE> indicator and an xmlns (XML name space) attribute added to the
html tag so that it is possible to intermix XML more easily into the XHTML document:
Doctype statement indicates type of document
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/
txhtml1-strict.dtd">
<html xmlns=“http://www.w3.org/1999/xhtml”>
<head>
<meta http-equip="Content-Type"
content="text/html; charset=utf-8" />
<title>Page Title</title>
Head contains
info about page
</head>
<body>
Root HTML
element
encloses
entire doc
Body
</body>
</html>
Filename: template.html
Alternatively, in either HTML or XHTML (but not in HTML5), we can replace the
<body> tag with a <frameset> tag, which encloses potentially numerous <frame> tags
corresponding to individual portions of the browser window, termed frames . Each frame in
turn would reference another HTML/XHTML document containing either a standard
document, complete with <html> , <head> , and <body> tags, or perhaps yet another
framed document. The <frameset> tag also should include a noframes element that
provides a version of the page for browsers that do not support frames. Within this element,
 
Search WWH ::




Custom Search