Your Ad Here

The Basic Structure of an HTML Document


A number of basic structural elements are required to make a valid (X)HTML page.
Basically, everything should fit into a structure outline that looks something like this:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en”>
<head>
<title></title>
</head>
<body>
</body>
</html>

At the very top is a document-type declaration and following that is an html element.
Inside the html element there are two elements—head and body. The contents of the
head element (including the required title element) give general information about the
content of the HTML document. The content of the body element is where everything
else goes—the viewable (or audible, or otherwise experienced) web page content.

0 comments:

Post a Comment

Popular Posts

Recent posts