> From: Martha Bowes
> 
> I've run the CSS and HTML 4.0 validators on my home page.
> 
> Error Line 23 column 44: there is no attribute "CLASS".
> ...s="address" align="center">M<f class="smallcaps">ARTHA</f> H. B<f  
> class="smal
> 
> 
> The temporary site of the home page is: 
> http://www.genealogyvault.net/ 
> bowes-bigelow/index2.html
> The style sheet is: http://www.genealogyvault.net/bowes-bigelow/ 
> style.css

Martha,

There is no <f> element in html or xhtml.

You need a real element to apply your classes to.

If you want to make your own arbitary element you could use
<span> for an inline element, of <div> for a block level
element.

<p class="address" align="center">M<f class="smallcaps">ARTHA</f> H. B<f
class="smallcaps">OWES, CLTC<br>
General Insurance Broker<br></f>
<f class=smallcaps2>Long-Term Care Planning Specialist</f></p>

You could rewrite this (html 4) to:

<p class="address">
M<span class="sc">artha</span> H. B<span class="sc">owes, CLTC<br>
General Insurance Broker<br></span>
<span class="sc2">Long-Term Care Planning Specialist</span>
</p>


CSS
---
.address {
        color: #005500;
        font-weight: bold;
        font-size: 150%;
        font-family: Helvetica, Arial, sans-serif;
        text-align: center;
}
.smallcaps {
        color: #005500;
        font-weight: bold;
        font-size: 90%;
        font-family: Helvetica, Arial, sans-serif;
}
.smallcaps2 {
        color: #CC6600;
        font-weight: bold;
        font-style: italic;
        font-size: 90%;
        font-family: Helvetica, Arial, sans-serif;
}

Note that there is an <address> element that you could use and
style, elminating the <p class="address"> notation. This isn't
really an address at all though.

-- 
Peter Williams
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to