W3-Video WEB Tutorials

w3-video.com is a Free eLearning Website with over 500 video tutorials on HTML5, XAMPP, .htaccess, Firefox, Notepad++

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

!doctype html

Share it

doctype intro doctype required doctype occurrences doctype browser display doctype first element doctype syntax

HTML5 Doctype declaration

The Doctype declaration ensures standards compliant rendering »video

About Doctype

Display & support Doctype

Firefox iconChrome iconIE iconOpera iconSafari icon

Parents, children Doctype

The Doctype declaration is the first element of your HTML5 document: it has no parents nor children »video

Attributes Doctype

Syntax Doctype

<!DOCTYPE html>
<!doctype HTML>
<!doctype html> »video

Attributes and Values Doctype (comma separated)

not applicable

Video demonstration Doctype declaration

HTML5 Doctype declaration Tutorial

min video details
00:07 the doctype declaration is present, therefore the web Browser renders the web Page in 'Standards compliance mode'
00:29 QUIRKS mode:
00:26 when doctype declaration is absent, the web Browser renders the web Page in 'Quirks mode'
00:41 doctype declaration ensures standards compliant rendering

Quirks mode :

Browsers 'Quirks mode' ensures backwards compatibility for web pages (websites) created ⁄designed in the past for old browsers, which, back then, did not align 100% with W3C and IETF specs.