开发者

Does HTML5 remove the distinction between strict and transitional?

开发者 https://www.devze.com 2023-01-05 15:55 出处:网络
From what I have read, it appears that HTML5 removes the distinction betwe开发者_开发百科en strict and transitional (always strict now). I have not been able to find it specifically mentioned anywhere

From what I have read, it appears that HTML5 removes the distinction betwe开发者_开发百科en strict and transitional (always strict now). I have not been able to find it specifically mentioned anywhere, only implied. Is this the case?


This is the (only) DOCTYPE for HTML5:

<!DOCTYPE html>

That's it. So yes, there's no difference between "strict" and "transitional".


Yes, it does. Transitional and Strict only apply to XHTML 1.0 and HTML 4.01.


From what I have gathered so far html5 has some sloppy allowances, for instance, you can tag upper or lower case. It will not necessarily flag certain fudging as xhtml 1.1 will. I suspect this can lead into problems down the line for the casual/sloppy coder.

I code in xhtml strict. I would advise anyone learning html to learn strict coding practices - it will teach you how to code consistently and accurately, and how to problem solve succinctly, and to be better prepared as xml standards open up for more and more practical use.
I cannot stress how glad I am I started coding strict. If you search on "is html5 strict" (the truth is out there) you will find tones of what I am saying reflected/shared in the more educated circles (imho), so I think my remarks are fairly sound. You will also find good advice on maintaining your tried and true xhtml coding while stretching your legs with (x)html5. (If you don't know why I added the (x) there, then you are not done searching ;^) Try searching html5 + xml ;^) HTH, Cheers.

0

精彩评论

暂无评论...
验证码 换一张
取 消