Hi all. I'm rather interested to "upgrade" my HTML from XHTML 1.0 Transitional to Strict.
I have several problems. First, I heard that internal JavaScript code and CSS code have to be commented out. I tried using a convertor before and the new XHTML code (Transitional) uses this:
<style type="text/css">
/*<![CDATA[*/
css code here....
/*]]>*/
</style>
However from what I read in HTML Goodies, I suppose it is no longer like this?
I tried something like that but it doesn't work:
<style type="text/css">
<![CDATA[
css code...
</style>
Another question, about comments. Since <!-- COMMENT --> Cannot be used in XHTML Strict, what should I use? I tried
<![CDATA[ COMMENT ]]>
but it's an error and the comment is displayed on the page.
]]>
I have several problems. First, I heard that internal JavaScript code and CSS code have to be commented out. I tried using a convertor before and the new XHTML code (Transitional) uses this:
<style type="text/css">
/*<![CDATA[*/
css code here....
/*]]>*/
</style>
However from what I read in HTML Goodies, I suppose it is no longer like this?
I tried something like that but it doesn't work:
<style type="text/css">
<![CDATA[
css code...
</style>
Another question, about comments. Since <!-- COMMENT --> Cannot be used in XHTML Strict, what should I use? I tried
<![CDATA[ COMMENT ]]>
but it's an error and the comment is displayed on the page.
]]>