How to change an HTML document 4 to HTML 5?

5

I have a project already done, done in HTML 4.01, how can I change it so it recognizes HTML 5?

I can only change this:

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

by:

< !DOCTYPE html >

Will it work?

    
asked by anonymous 15.04.2015 / 19:24

1 answer

5

Exactly, this is the correct form. This form makes the code compatible with HTML 5 and earlier.

15.04.2015 / 19:27