1

With HTML5, declaring the doctype only requires this code:

<!DOCTYPE html>

Where as older versions needed something like this:

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

Why doesn't HTML5 doctype need to reference the version such as <!DOCTYPE html5>?

I understand the doctype is only needed to force standards rendering, but if HTML6 was released with new features, wouldn't HTML5 declarations need to reference the version?

prompteus
  • 1,051
  • 11
  • 26
Simon J
  • 19
  • 1

0 Answers0