When using the inbuilt template for my html pages in eclipse, I get the following code appended prior to xhtml doctype: <?xml version="1.0" encoding="ISO-8859-1" ?> Does this code affects the html pages?
When using the inbuilt template for my html pages in eclipse, I get the
Share
No it doesn’t, your html is still valid and readable for every browser. (However, it will put IE into quirks mode for every version below IE9 — see @Rob’s comment.)
Because you are using xhtml, which is basicly a type of xml, the browser needs some kind of encoding for the document.
See w3c:
BTW this is only if you use another char-set than UTF-8 or UTF-16. If you use default UTF8 or UTF016 there are some exceptions. See W3C (again).