There are three basic levels to the structure of HTML document.First the Document structure,in which the document is divided in to head,body and script. The second one applies to head and body with contents such as titles, meta data,paragraphs,headings etc..
The third level exists within the body such as form,form element,tables with rows and columns.
Every HTML document has two main parts: HEAD and BODY. HTML indetifies global langauge and text direction for the document,in addition to serving as a container to mark begining and closing of documents.
| Head Structure | Body Structure | Frameset | Sub Structure |
The Head element has a variety of informations for the browser,including a title,key words,link information exisits as siblings.Here no element is more important than any other.Title is important as Link is as important as Meta.
It is what the end user sees when document is rendered on the browser.It includes text and objects,such as images and applets with mark up tags to define their structure and relationship to each other.It typically contains a hierarchy of elements.
We can give following example for HEAD and BODY element: |
| Head Structure | Body Structure | Frameset | Sub Structure |
A <FRAMESET> is a special type of body element that, by its definations,can contain frames and framesets only.Its contents are much more controlled than a body. However, the hierarchy established by the placement of a <FRAMESET> evolves in the same way as <BODY> element.
In the following lines,each of two FRAME elements are sibblings and children of FRAMESET element:
<FRAMESET>
<FRAME>
<FRAME>
</FRAMESET>.
HTML recognises this kind of hierarchy as it is implemented in browsers.
In the body of a HTML document,some elements have their own internal structure to define their use and appearence.For example TABLE element has got CAPTION,HEADER and FOOTER as substructures.
Top of this page
| Home | Overview | W3C | HTML4.0 | Introduction | Interactivity |
| Table | Forms | Appearance | CSS | Scripting | Frameset | XML | Advanced techniques |