HTML5 DOCTYPE

HTML5 DOCTYPE

HTML5

  • Designed to make it easy to manage multimedia and graphical content without using plugins
  • Adds the <video>, <audio>, <header> and <canvas> elements
  • Supports Scalable Vector Graphics (SVG)
  • Adds the <section>, <article>, <header>, and <nav> elements to support semantic content

HTML5 <!DOCTYPE> Declaration

  • It is an instruction to the browser about the version of the markup language
  • Must be the first thing in your layout before the <html> tag
  • HTML5 is not based on SGML, so the DOCTYPE does not require a reference to a DTD
  • Should only look like this: <!DOCTYPE html>

Configuring Sitecore 6.5 for HTML5

  • Change the DOCTYPE of all your layouts to <!DOCTYPE html>
  • It is important that you specify the <!DOCTYPE html> in all layouts

Sources