February 19, 200818 yr Am I right in thinking IE doesnt like XHTML?? I hand code my site in dreamweaver and then validate it. Dreamweaver seems to save as .html as opposed.xhtml like I thought it would. W3's validator picks this out so I rename the extensions to .xhtml. Works fine in FF yet all versions of IE go really wierd. If I change it back to html, even though it validates to xhtml IE works fine. What am I doing wrong?
February 19, 200818 yr Whether it's html or xhtml, it should have an .html file extension. IE doesn't have a problem which specification you use for your markup, just as long as you pick a spec and stick to it.
February 19, 200818 yr Author Ah right - doh!!! I just though it would be an xhtml extension. IE doesn't have a problem which specification you use for your markup, just as long as you pick a spec and stick to it. And set the doc-type accordingly? Is this how it knows its xhtlm even without a .xhtml extension. Just curious. Thanks Rachael, my personal web tutor B)
February 19, 200818 yr Yes, set the doctype accordingly. It's the doctype that defines what the html is, not the file extension. You can also use html inside a .php file.
February 19, 200818 yr Author Sort of explains why DW doesn't save in the .xhtml format. 'cos it don't exist
Create an account or sign in to comment