Re: CSS & Span tag

by Andrew McFarland <aamcf(at)aamcf.co.uk>

 Date:  Wed, 22 May 2002 07:37:03 +0100
 To:  <hwg-basics(at)hwg.org>
 In-Reply-To:  cogeco
  todo: View Thread, Original
At 18:45 21/05/02 -0400, Andie Maranda wrote:
<snip/>
>Should I use the <SPAN STYLE> tag or something else. I want the text to use
>the 10pt for the size.

The span element is nearly as bad as the font element. Only use it if there 
is no other element that will describe the content in a better way. If, for 
example, it is a paragraph use the p element with a class, rather than a span.

>What would be the exact code to accomplish this.

in the CSS:

span.classname {
/* CSS declarations here */
}


in the HTML:

<span class="classname">...</span>

Andrew

--
http://aamcf.co.uk/

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA