I just converted my homepage to xhtml 1.0 Strict. I have a few questions, though:
- My pages are very simple. Should they include an XML declaration, such as
<?xml version="1.0" encoding="iso-8859-1"?>
or not? I don't really understand the pros and cons. Reading some stuff about it on this page sort of scared me off of it:
www.hut.fi/u/hsivonen/doctype.html
- if my page includes each of these lines:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
and
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Is that redundant, and is that good or bad in terms of cross-browser compatibility? Beyond what I can test, is there a best way to do this?
Thanks again for your help.
And by the way, as per my last question in this forum, I was bedeviled by MS's lack of support for "position: fixed" in my stylesheets. I didn't particularly like any of my workaround options, so I disabled my fancy (by my standards) fixed CSS side menus... for now. I may go with one of the workarounds or just go frames someday soon.
- My pages are very simple. Should they include an XML declaration, such as
<?xml version="1.0" encoding="iso-8859-1"?>
or not? I don't really understand the pros and cons. Reading some stuff about it on this page sort of scared me off of it:
www.hut.fi/u/hsivonen/doctype.html
- if my page includes each of these lines:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
and
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Is that redundant, and is that good or bad in terms of cross-browser compatibility? Beyond what I can test, is there a best way to do this?
Thanks again for your help.
And by the way, as per my last question in this forum, I was bedeviled by MS's lack of support for "position: fixed" in my stylesheets. I didn't particularly like any of my workaround options, so I disabled my fancy (by my standards) fixed CSS side menus... for now. I may go with one of the workarounds or just go frames someday soon.