RE: [WSG] Text within tables
Hi Kenny, Yes, that makes perfect sense. So, for example, if I want to put a single word into a table cell - e.g. THCategory/TH - for it to be semantically correct, should it be wrapped in P tags? It's hardly a paragraph and contains no other inline elements. But if I were to use - e.g. THSelect a bcategory/b./TH - then I imagine P tags would make sense. What I'm really asking is what, from an accessibility poont of view, is the XHTML strict markup for this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenny Graham The content of a table cell should only be in a paragraph element if the content of that cell is a paragraph. Should be a simple enough question but should text within a table cell ALWAYS be surrounded by P tags, or do we assume the TD to be the block element surrounding the inline text? ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Text within tables
THCategory/TH - for it to be semantically correct, should it be wrapped in P tags? It's hardly a paragraph and contains no other inline elements. Nope, no P tags. But if I were to use - e.g. THSelect a bcategory/b./TH - then I imagine P tags would make sense. I'd still leave out the p tags, since it's not a paragraph, just a sentence. Nothing wrong with having an inline element inside a th. If you feel funny using th as the only container, then i suppose you could wrap its contents in a div, but it's not necessary. What I'm really asking is what, from an accessibility poont of view, is the XHTML strict markup for this? XHTML 1.0 Strict and above is all I know, so that's what I'm basing my views on. The side effect of only knowing strict XHTML is that your capital tags and bold elements make me cringe. ;) ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] Text within tables
They're just there for emphasis. Trust me. ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenny Graham Sent: Friday, 28 October 2005 4:27 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] Text within tables THCategory/TH - for it to be semantically correct, should it be wrapped in P tags? It's hardly a paragraph and contains no other inline elements. Nope, no P tags. But if I were to use - e.g. THSelect a bcategory/b./TH - then I imagine P tags would make sense. I'd still leave out the p tags, since it's not a paragraph, just a sentence. Nothing wrong with having an inline element inside a th. If you feel funny using th as the only container, then i suppose you could wrap its contents in a div, but it's not necessary. What I'm really asking is what, from an accessibility poont of view, is the XHTML strict markup for this? XHTML 1.0 Strict and above is all I know, so that's what I'm basing my views on. The side effect of only knowing strict XHTML is that your capital tags and bold elements make me cringe. ;) ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Text within tables
On Fri, 28 Oct 2005 15:16:58 +1000, Paul Noone wrote: Should be a simple enough question but should text within a table cell ALWAYS be surrounded by P tags, or do we assume the TD to be the block element surrounding the inline text? No, blockquote is the only element that I can think that needs other block level elements within it. T* tags can take straight content, provided it makes semantic sense... HIH Lea -- Lea de Groot Elysian Systems - http://elysiansystems.com/ Brisbane, Australia ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Text within tables
The content of a table cell should only be in a paragraph element if the content of that cell is a paragraph. Should be a simple enough question but should text within a table cell ALWAYS be surrounded by P tags, or do we assume the TD to be the block element surrounding the inline text? ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **