Horje
How to create 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:


How is to look HTML <!DOCTYPE> Declaration

<!DOCTYPE html>

Full Example of HTML <!DOCTYPE> Declaration with HTML Page

Most top of a HTML Page should use <!DOCTYPE> Declaration
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>

Output should be:

Full Example of HTML <!DOCTYPE> Declaration with HTML Page

<!DOCTYPE> Declaration

Output should be:

<!DOCTYPE> Declaration





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

Single Articles
How is to look HTML <!DOCTYPE> DeclarationHTML Basic
Full Example of HTML <!DOCTYPE> Declaration with HTML PageHTML Basic
<!DOCTYPE> DeclarationHTML Basic

Read Full:
HTML Basic
Category:
Web Tutorial
Sub Category:
HTML Basic
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
244


Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_basic_document

Share on: