Open local xhtml files in chrome, however, chrome treats it as XML files, and won't render it as HTML.
I don't want to change all my *.xhtml file extension to .html, so is there any workaround?
EXAMPLE
a.xhtml:
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Example
Hello,
World!
Answer
Because you declared XHTML-1.0 strict your html tag needs an xml namespace:
A few other validation issues: you need a character set declaration and your text needs a around it.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Example
Hello,
World!
No comments:
Post a Comment