#t35ad{font: 14px arial,helvetica; text-decoration: none; line-height:1.5em; text-align: center; } #t35ad a{font: 14px arial,helvetica; text-decoration: none; } #t35ad a:hover{background-color: black; color: white; font-size:medium; font-weight: bold; } #t35ad ul{display: inline; list-style-type: none; padding: 0;} #navlist li{display: inline; list-style-type: none; padding-right: 0px; padding-left: 0px; padding: 0;} tags, tags, HTML, hyperlinks, anchors, control markers, markers, HTML (Hypertext Markup Language), documents, HTML (Hypertext Markup Language), tags">072 - 2.1 HTML Document Structure
Team-Fly   Previous section   Next section

Webmaster in a Nutshell, 3rd Edition
By Robert Eckstein, Stephen Spainhour
Table of Contents
Chapter 2.  HTML Overview


2.1 HTML Document Structure

An HTML document consists of text, which comprises the content of the document, and tags, which define the structure and appearance of the document. The structure of an HTML document is simple, consisting of an outer <html> tag enclosing the document header and body:

<html>
<head>
<title>Barebones HTML Document</title>
</head>
<body>
<p>
This illustrates in a very <i>simple</i> way,
the basic structure of an HTML document.
</p>
</body>
</html>

Each document has a head and a body, delimited by the <head> and <body> tags. The head is where you give your HTML document a title and where you indicate other parameters the browser may use such as script and style sheets. The body is where you put the actual contents of the HTML document. This includes the text for display and document control markers (tags) that describe the text elements. Tags also reference media files like graphics and sound, and indicate the hot spots (hyperlinks or anchors) that link your document to other documents.


    Team-Fly   Previous section   Next section
    Top
    stats