[thelist] replace <b> with <strong> (why dont use b tag)]

Adam Fahy afahy at earthlink.net
Wed Jul 31 11:16:02 CDT 2002


rudy wrote:

 > um, maybe i'm missing something, but if there are certain portions of
 >  structure that have to be styled somehow, how else are you gonna
 > apply the style except through some kind of tag?  in other words, you
 >  *cannot* separate style and structure without tags!!

For this purpose--if you need a "generic" inline element--use the
generic inline element, <span>.  There's nothing wrong with:


.visualCue
{
      font-weight: bold;
}

<p>Lorem ipsum dolor sit amet, <span class="visualCue">consetetur</span>
sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
dolore magna aliquyam erat, <span class="visualCue">sed diam</span>
voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</p>


...when you don't have the appropriate markup in standard HTML.  It
provides a much richer semantic structure than is possible with <b>.


-Adam




More information about the thelist mailing list