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

<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>

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

</body>
</html>

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 Documents


Advertisements

Add Comment

📖 Read More