Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Browsers echo XHTML/CSS as text; why?
December 20, 2005, 1:51 am
rate this thread
(see Listing 4: Inline CSS)
My basic question is:
My browsers, Firefox or MS Internet Explorer, display this by just
showing the XHTML text, rather than rendering the XHTML plus CSS. That
is, the browser literally just shows text starting with "<!DOCTYPE HTML
PUBLIC "-//W3C//DTD ...", rather than showing the Web page this text
What do I do to make the browsers render XHTML properly?
Santa Barbara, CA
Re: Browsers echo XHTML/CSS as text; why?
URL? Does your browser otherwise support CSS? You may have cut and
pasted something wrong.
Of course, as the lesson points out, an external style sheet is
better unless you have a good reason for inline styling.