HTML Basic


HTML Documents

All HTML documents must start with a document type declaration: .

The HTML document itself begins with  and ends with .

The visible part of the HTML document is between  and .

Example

<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

HTML Headings

HTML headings are defined with the 

 to 
 tags.

 defines the most important heading. 
 defines the least important heading: 

Example

<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>



Related Tutorials