Previous Message
Next Message

Re: [css-d] element names in different browsers

Sent by Mark Gallagher on 8 February 2002 23:11


David,

> my doctype is xhtml1-strict.dtd but I'm using xml tags freely in my
page.
>
> I *really* hate having to do:
> <div class="chapter_title">Chapter 1</div>
> (hrm... looks suspiciously like font tags, don't it?)
>
> So I just did:
> <chapter_title>Chapter 1</chapter_title>
> (me love'm XML)
>
> IE is obviously dropping all the tags that aren't defined as HTML tags
so
> the CSS never gets applied.  can I tell IE that this is an XML
document and
> that it's ok to just style the content the way I say? :-)  the
problem, of
> course, is that without a special "head" and "body" tag it would be
hard to
> make the xml I'm using be browser-pretty.

(caveat: I don't use XML, I don't *know* XML for sure)

I think if you're going to use your own tags, you probably should write
your own DTD - at least, one that includes the ones you've invented.

What's wrong with <h1>... etc., for what you're trying to do, though?


--
Mark Gallagher
http://cyberfuddle.com/infinitebabble/
Previous Message
Next Message

Possibly related: