Horje
HTML <!DOCTYPE> Declaration

The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly.

It must only appear once, at the top of the page (before any HTML tags).

The <!DOCTYPE> declaration is not case sensitive.

The <!DOCTYPE> declaration for HTML5 is;


HTML <!DOCTYPE> Declaration View

Here is Simple Example.

<!DOCTYPE html>

Example of HTML <!DOCTYPE> Declaration

Most top of a HTML Page should use Declaration

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>
<h1>
My First Heading</h1>
<p>
My first paragraph.</p>
</body>
</html>

Output should be:

Example of HTML <!DOCTYPE> Declaration

<!DOCTYPE> Declaration

Here is example.

Output should be:

<!DOCTYPE> Declaration





Related Articles
HTML Documents HTML Basic
HTML <!DOCTYPE> Declaration HTML Basic
HTML Headings HTML Basic
HTML Paragraphs HTML Basic
HTML Text Links HTML Basic
HTML Images HTML Basic
How to View HTML Source HTML Basic

Single Articles
HTML <!DOCTYPE> Declaration View HTML Basic
Example of HTML <!DOCTYPE> Declaration HTML Basic
<!DOCTYPE> Declaration HTML Basic

Category :
Web Tutorial
Sub Category :
HTML Basic
Uploaded by :
Admin


Read Article
https://horje.com/learn/1434/reference