THE MINIMAL HTML DOCUMENT


Every HTML document should contain certain standard HTML tags. Each document consists of a head and body section. The head section contains instructions for the browser, information for search engines and the title. The body contains the information (text and images) and associated tags needed to format what will actually be displayed in the browser window. Browsers expect specific information because they are programmed according to HTML specifications.

Required elements are shown in this sample bare-bones document:

<html>
<head>
<title>A Simple HTML Example</title>
</head>
<body>
<h1>HTML is Easy To Learn</h1>
<hr>
<p>Welcome to the world of HTML.  
This is the first paragraph.  While short, it is still a paragraph!</p>
<p>And this is the second paragraph.</p>
</body>
</html>
Click Here To See What This HTML Would Look Like in a Browser.


The required elements are the <html>, <head>, and <body> tags (and their corresponding end tags). Each of these required tags are used only once per HTML document. (Some browsers will format your HTML file correctly even if these tags are not included. But some browsers won't! So make sure to include them.)

Back to Top

BACK | HOME