Question:
I have a ready-made project, made in HTML 4.01, how can I change it so that it recognizes HTML 5 ?
I can just change this:
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" >
for:
< !DOCTYPE html >
and will it work?
Answer:
Exactly, this is the correct way. This form makes the code compatible with HTML 5 and earlier versions.
- Specification .
- Article about the advantage of this simple way.
I just don't like the spaces in the opening and closing of the tag , but I really like it.