HTML <!DOCTYPE> Declaration

The HTML <!DOCTYPE> isn’t a tag, it’s a declaration. It is the first thing you can see on any HTML Document. Add the doctype declaration to HTML Document, since it is an instruction to the browser. The instruction is to tell the web browser which HTML version to expect.

The following is an example showing doctype declaration in HTML,

Example

The following example shows how to correctly add <!DOCTYPE> to an HTML web page,

Here’s the output,

HTML5 Doctype Declaration

 

HTML5 SVG (Scalable Vector Graphics)
HTML a Tag
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading