Hi Pranav, not sure if I'm the right person to ask, but if I understand the question, the first one is the only one that will preserve visual appearance of the text. The spec states [1] that
[ordinarily] <http://www.w3.org/TR/SVG/struct.html#DescElement> 'desc' and <http://www.w3.org/TR/SVG/struct.html#TitleElement> 'title' elements are not rendered as part of the graphics So the second block of code should not even allow the text to be displayed. The spec also says [2] that . When the text content of a graphic (e.g., in a <http://www.w3.org/TR/SVG/text.html#TextElement> 'text' element) explains its function, no text equivalent is required. Use the <http://www.w3.org/TR/SVG/struct.html#TitleElement> 'title' child element to explain the function <http://www.w3.org/TR/SVG/text.html#TextElement> 'text' elements whose meaning is not clear from their text content. though I gather that your purpose requires it for other reasons. [Doesn't that last sentence read a bit oddly? Perhaps the word "of" between "function" and "text" might help??] Another tip for consistency of appearance: I think that Firefox prefers that units be specified on your font-size, so font-size="14pt" would be preferable, if I'm right. Cheers David [1] http://www.w3.org/TR/SVG/struct.html#DescriptionAndTitleElements [2] http://www.w3.org/TR/SVG/access.html From: [email protected] [mailto:[email protected]] On Behalf Of Pranav Lal Sent: Tuesday, July 19, 2011 9:35 PM To: [email protected] Subject: RE: [svg-developers] Title or desc tag in text tag? Hi David, I have a graph that has several <text> tags. <text x="255" y="32" font-family="Verdana" font-size="14" font-weight="bold" fill="rgb(0,0,0)" text-anchor="middle" style="baseline-shift:-25%">Sheet1 Chart 4 The accessible viewer for this graph needs a title element to be asociated with every graphical element. Yes, I know the text element is not a graphical element but I am exploring options as of now. Which out of the two forms below will best preserve the visual appearance of the text? 1. <text x="255" y="32" font-family="Verdana" font-size="14" font-weight="bold" fill="rgb(0,0,0)" text-anchor="middle" style="baseline-shift:-25%">Sheet1 Chart 4 <title>Sheet1 Chart 4</title></text> 2. <text x="255" y="32" font-family="Verdana" font-size="14" font-weight="bold" fill="rgb(0,0,0)" text-anchor="middle" style="baseline-shift:-25%"><title>Sheet1 Chart 4</title></text> I suspect the first form will but I would like other opinions. Pranav [Non-text portions of this message have been removed] ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

