Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


The Structure of HTML documents

An HTML document consists of text and tags that mark the structure of the document. Elements in an HTML document are delimited by the tags which include < and >. Some elements have both a start and end tag: e.g., <TITLE> and </TITLE>. Other elements use only a single tag: e.g., <P> (the paragraph element). Some elements have attributes, which are qualifications of the element's meaning or optional parameters for that element.

Every HTML document must at least include the descriptive title element, e.g:

<TITLE>The WDVL: The Structure of an HTML Document</TITLE>

More generally, documents can start with a <!DOCTYPE> declaration followed by an HTML element containing a HEAD and then a BODY element. An HTML 4.0 document comprises three parts:

  1. a line containing HTML version information,
  2. HTML:
    1. a declarative header section (delimited by the HEAD element),
    2. a body, which contains the document's actual content. The body may be implemented by the BODY element or the FRAMESET element.
White space (spaces, newlines, tabs, and comments) may appear before or after each section. Sections 2 and 3 should be contained within the HTML element.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<Head>
	<TITLE>The WDVL: HTML 3.2</TITLE>
	..  other head elements ..
</Head>
<Body   Background = "/Images/margin.gif"
	Bgcolor	= "#ffffff"
	Text	= "#000000"
	Link	= "blue"
	Vlink	= "purple"
	Alink	= "red"	>

	.. other BODY elements ..
</Body>
</HTML>

The BODY attributes are deprecated in HTML 4.0. BODY comprises:-

Block Elements
Headings, Paragraphs, Unordered, Ordered, and Definition Lists

Forms
User-input Forms: Text Fields, Buttons, Menus, and more

Frames
Multi-view presentation of documents

Links
Hypertext and Media-Independent Links

Tables
arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into rows and columns of cells.

Text
Paragraphs, Lines, and Phrases



Up to => Home / Authoring / HTML




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers