You are not logged in.
Pages: 1
I was helping my fiancee make a webpage, and we wanted it to be centered in the browser. I did a quick google and found an answer that would work for XHTML, but not for HTML. If I switched it over to XHTML, would I encounter many difficulties and would the page be compatible with FF, Opera, IE6, and IE7?
Is XHTML too fancy for some old lady's browser?
Offline
By using XHTML you will encounter less difficulties with the browsers. Take it from a freelance web coder
Offline
XHTML is more standardized I believe, but its also more picky if you miss things.
Offline
Thank you for the answers, guys.
Now, just one more. Let's assume that I've written my webpage correctly. If I switch to XHTML, will my page work right without any changes on my part?
Offline
XHTML is almost identical to HTML 4.01. Any valid XHTML you write will also be valid HTML 4.01, but NOT vice versa. This means some things that are allowed in HTML are not allowed in XHTML.
If you write valid XHTML strict it should render correctly on most browsers. Have a look here for info and tutorial:
Offline
.
Last edited by fumbles (2020-09-26 12:14:11)
Offline
we wanted it to be centered in the browser. I did a quick google and found an answer that would work for XHTML, but not for HTML.
The mark-up language is not the issue, you just need to use a strict doctype.
Any valid XHTML you write will also be valid HTML 4.01
This is not true, browser vendors have tag soup parsers and dropped (or never implemented) some HTML features so they can cope with all the XHTML that is served as HTML on the web today. While it is possible to be valid for both, you'd have a hard time finding many pages/sites.
Last edited by N30N (2008-11-04 20:22:28)
Offline
The real question is HTMl 5.0 or XHTML 2.0?
vim? EMACS? Pssh, I code in Scribus.
Offline
Pages: 1