[thelist] CSS: unexpected behavior, please advise
Martin
martin at members.evolt.org
Fri May 10 19:30:01 CDT 2002
On Saturday, May 11, 2002, at 12:53 am, Chris W. Parker wrote:
>> And apply it as such:
>> <div class="formTitles">Email<span class="redSplat">*</span></div>
>
> i'd like to not use the font tag anymore. is the <span> tag a do-nothing
> tag? does it by itself <span></span> do anything?
Correct - <span></span> just demarcates some other inline content
which you can do stuff to. It has no semantic meaning (tautology I
know).
> the reason i ask is
> because instead of using a <font></font> tag to get the red asterisk i
> could use a <p> tag but that creates some lines for a paragraph and if i
> use a <div> i believe it does the same thing. (i'm not sure about
> that...)
<div> is the same as <span> except for block level content. If you
want to mark up something less than a paragraph, use <span>
(make sure it's nested correctly of course). Otherwise use <div>.
Cheers
Martin
_______________________________________________
email: martin at easyweb.co.uk PGP ID: 0xA835CCCB
martin at members.evolt.org snailmail: 30 Shandon Place
tel: +44 (0)774 063 9985 Edinburgh,
url: http://www.easyweb.co.uk Scotland
More information about the thelist
mailing list