Wednesday 1 August 2018

Chrome doesn't render xhtml?


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

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...