Common Declarations

- - HTML5 - -
          <!DOCTYPE html>

- - HTML 4.01 - -
          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

- - XHTML 1.0 - -
          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Good habit
NEW! Gee, notice how simplified the HTML5 version is written! Oooh! Saving keystrokes!

TIP: Some say that HTML5 beginners should use the HTML 4.01 type and version, because HTML5 is too strict. This way, a beginner does not appear to be messing up the markup language.

Back button Table of Contents Next button