What is the doctype for HTML5?

The first line of your HTML5 file should include a doctype, it is case-sensitive with html in all lower case. The doctype tells the browser which specific rendering mode to use and sets the guidelines for HTML validation. If you are writing HTML5, you’ll want to use the following tag:

 <!DOCTYPE html>

Back to Blog