Tutorialsplane

Html Documents


Html Documents : Starts with the DOCTYPE declaration ie .. The main document of html start with tag and ends with tag.


Html Documents

Below is simple example of the html document.

Example




<title>Title</title>



<h1>Heading</h1>
<p>Paragraph.</p>



Try it ยป

The above example contains basically following parts:

1. Doctype Declaration : is used to declare the document type.
2. Html : defines the root of html.
3. Head :

which defines the information about the document.
4. Body : which contains the main and visible part in html.

Html Documents

Html Formatting