Re: Best way to markup standards compliant symbols

Mery Richard wrote:
> I am wondering which would be the most and best way to achieve 
> standards compliant symbols such as commas and apostrophes?
>  
> I.e. & > etc,
>  
> Do they have to be coded characters or can they be regular text?
The only characters that need to be represented using a character 
reference are those which would otherwise have special meaning in HTML 
(such as < in a place where a tag can be started or " inside an 
attribute value that is delimited with strings).

If you are using a non-Unicode encoding (don't do that), then you also 
need to use character references to represent characters that don't 
exist in the encoding being used.

This is all very low level stuff and irrelevant to accessibility - the 
only reason people might have problems (assuming the author hasn't made 
a mistake) is if they are using a truly broken tool to parse the HTML.

-- 
David Dorward
http://dorward.me.uk/

Received on Friday, 20 March 2009 10:07:30 UTC