|
Posted by cwdjrxyz on 05/27/07 00:30
On May 26, 5:34 pm, dorayme <doraymeRidT...@optusnet.com.au> wrote:
> In article
> <1180215971.642242.215...@w5g2000hsg.googlegroups.com>,
> fulio pen <fulio...@yahoo.com> wrote:
>
>
>
> > There are foreign symbols in one of my html files, so the meta charset
> > must be:
>
> > <meta http-equiv="content-type" content="text/html; charset="gb2312" /
>
> > But either online or off, the external css works well only when the
> > file is opened with the IE browser. When it opened with FF, the
> > external css doesn't work at all. No markup takes effect. The file
> > is in:
>
> >http://www.pinyinology.com/zidian3/n.html
>
> > Your help is greatly appreciated.
>
> > fulio pen
>
> You know that you have an inappropriate (for the doctype) " /> at
> the end of your above meta line?
>
> First thing to do is to fix up the errors in the mark up.
>
> --
> dorayme
Also, in several places in the code, xhtml constructions such as <br /
> or <br/> are used for this html4.01 document. Often this does no
harm, but not always. Also a space before the "/" at the end of a tag
is required for an xhtml tag that does not have a closing tag in html.
I believe this space was required because some browsers had trouble
with this xhtml construction if no space here was used. I have not
checked recent browsers to see if any still have this problem. In this
case, the solution is simple. You just replace all of the self-
contained xhtml end tags such as <br /> with the proper one for html
4.01 used in this document such as <br>. If I remember correctly, you
do not need the space in a smil document which is somewhat more modern
code than early xhtml 1.0 and which usually is supported by a special
player/viewer rather than directly by a browser.
[Back to original message]
|