How to change an HTML 4 document to HTML 5?

Asked

Viewed 474 times

7

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

I can just change that:

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

for:

< !DOCTYPE html >

and it will work ?

1 answer

6


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

I just don’t like the spaces in the opening and closing of the tag,I just taste it myself.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.