If I use HTML 5's doctype, what will happen?

doctype, html

Solution

Basically what will happen is that you'll get your page rendered in a "standards mode".

The only reason why you probably shouldn't use the new DOCTYPE is if you want to use XHTML 1.0 markup and conform to XHTML 1.0.

The downside to using HTML5 now is that the spec can change. This makes it important for you to keep up with the spec as it actively changes.

With that being said, I've already started using the new syntax in my pages. Also it guarantees that your page will last for a very, very, long time.

So go ahead, use it (and learn to love how simple it is).

Problem

I have recently been learning about doctypes, and was I wondering what the differences between `<!DOCTYPE html>` and some of the others were. I know `<!DOCTYPE html>` is the HTML5 doctype and it is experimental, but I was wondering what would happen if I used it instead of the other doctypes? Thanks in advance!!!!

Original source

Related problems