ID vs Class
One common question when working with XHTML and CSS is whether to use the id or class attribute on an element. There are several rules that you should consider when using either attribute.
You are currently browsing the XHTML help, using XHTML and CSS weblog archives for February, 2007.
One common question when working with XHTML and CSS is whether to use the id or class attribute on an element. There are several rules that you should consider when using either attribute.
Special Characters and CDATA
In XHTML the < and & are special characters that the XML processor will interpret as the start of markup. You’ll usually find these characters in Javascript such as this simple if statement: