W3C home > Mailing lists > Public > www-validator@w3.org > March 2007

Re: [VE][122] Need Help

From: Sierk Bornemann <sierkb@gmx.de>
Date: Tue, 27 Mar 2007 20:42:51 +0200
Message-Id: <0945D549-A281-4918-B998-5F17D2797EAD@gmx.de>
Cc: www-validator@w3.org
To: nospam2005-public@yahoo.com


Am 27.03.2007 um 12:29 schrieb <nospam2005-public@yahoo.com> :

> Hi,
>
> I am currently using dreamweaver mx 2004 I get the following  
> browser problems (I used your validator and got the below list) can  
> you help me with this.
>
> No Spam

To reference an ID, you have to use the ID without "#".
The "#" has only to be used in your Stylesheet (CSS) to mark an ID,  
whereas a "." has to be used to mark a class.

For example, your CSS for the ID "ContentArea" might be:

#ContentArea {
     border: 1px solid #000000;
}

.StandardText {
    color: #ffffff;
    background-color: #000000;
}

To markup your content it in HTML the right way, you have to write/ 
reference it as follows:
<div class="StandardText" id="ContentArea">
     Content
</div>

Remember, that Classes may occur several times in per document and  
may be reused, whereas an ID must not occur twice per document.



Sierk Bornemann
-- 
Sierk Bornemann | Germany
email:            sierkb@gmx.de
WWW:              http://sierkbornemann.de/
Received on Tuesday, 27 March 2007 18:42:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:24 GMT