Xhtml transitional and strict?

iframe is not supported in xhtml strict. However, in my application I am using php recaptcha which requires the use of iframes. What are the disadvantages of going to xhtml transitional (if any)?

+2


source to share


4 answers


Hobbs says there is no practical disadvantage. However, in theory, a rigorous DTD is more "promising".

Here's a link to a quick fix in PHP that will make the recaptcha valid XHTML 1.0 Strict:



http://www.boriel.com/2009/07/29/xhtml-strict-valid-recaptcha/

+3


source


Nothing really. In practical terms, when it comes to browser compatibility, functionality, and tool / generator friendliness, the XHTML 1.0 Transitional (following the HTML Compatibility guidelines and text/html

) is your best bet .



+1


source


Here you have a little comparison that can help you with respect to each type of document.

But in "practical" terms, if you want your site to be strictly used, why just add an iframe. the only problem with this is the page won't validate correctly

+1


source


At the time HTML4 was written, it was believed that the iframe would further shrink.

However, that was a long time ago, and it seems that this is no longer the case. Thus, you could say that a "strong" subset is no longer an accurate representation of the future of HTML / XHTML as it once was.

Use transient if there is a reason you need some of its features, but are well aware of which features are "deprecated" and generally avoid them where there is a better alternative.

Please note that browser support for transient features implemented today probably won't go away in my life. Backward compatibility has proven that brute nut cracks on the internet.

0


source







All Articles