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 |
Top |