On a html page the doctype I've used is as follows (for a mobile website):
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN"
"http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
which after uploading on the web server automatically turns into
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
To make it clear this change happens as soon as I save the page on the server. (using cPanel) Any i开发者_如何学Godea on what could be the reason for this (automatic) change? Because of this the layout of the page is not coming out as I expect it to be on some browsers.
Ok, I think I've figured out the exact problem, it happens only when I use the cPanel editor to edit the html page and not when I just upload the file and not open it in their editor. As Jeremy said in the comments below the question, it's cPanel changing (screwing?) it for me!
Thanks a lot everyone, especially Jeremy! :)
btw should I now delete this question or keep it as someone else might also face similar issue?
精彩评论