OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Embedding html in XML

[ Lists Home | Date Index | Thread Index ]

On 13 Nov 2002 at 17:55, Empowering You wrote:

> > ...  Forget about using standard
> > HTML for text formatting, that's not the right way to do it in .NET, 
> > in my opinion...
> 
> >Interesting.
> 
> >Why?
> 
> OK, you caught me.  How about, I don't know where I read it, but I got
> the impression that CSS is typically better.

Absolutely! Except when you have to support legacy browsers that don't 
implement CSS properly. Netscape 4 is the primary remaining offender in 
that regard, though it is slowly but surely disappearing.

I think the gentleman thought (as did I) that you were suggesting 
completely throwing out HTML coding in favor of working entirely at the 
level of .NET objects (objects? is that the right term?). My guess is 
that most people on this list would say that "standard HTML" implies 
using CSS, and "<font foo='bar'>" is non-standard, since the former is 
recommended, and the latter deprecated, by the W3C. After all, this is 
a bunch of standards wonks you've got here.

> Correct me if I'm wrong..., but if you use HTML don't you have to use it
> on individual items?  Where as, if you use CSS you can take a whole
> group, say the <paragraph> element, and make everything within that
> element, for example, "bold", rather than go through each paragraph and
> put <b> </b> tags around it.   

Basically, yes. Probably you want to do something like

  <p class="Emph">bla bla bla</p>

		or

  <p id="uniquelyImportantParagraph">yadda yadda</p>

in your HTML and

  p.Emph { font-weight: bold; }

      or

  #uniquelyImportantParagraph { font-weight: bold; }

in your CSS, otherwise you could find yourself bolding all paragraphs, 
an offense second only to writing them in all-caps.

--
Matt Gushee




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS