im using dreamweaver and created tables and it tells me that i cant use anything like <p> or <a> or hardly anything in xhtml for it to be verified.
so how do people use tables in xhtml?
im using dreamweaver and created tables and it tells me that i cant use anything like <p> or <a> or hardly anything in xhtml for it to be verified.
so how do people use tables in xhtml?
do i have to use blockqoute before putting <p>?
what about aligning images and the <a> tags?
Firstly, you shouldn't be serving XHTML to clients.
Secondly, why would you want to? Paragraphs don't go inside tables, only tabular data does.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Very infrequently.Originally Posted by bazmanblue
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Unlikely.Originally Posted by bazmanblue
Exactly the same way they do (or at least should) in HTML: to mark up tabular data.so how do people use tables in xhtml?
Only if the paragraph contains a quotation. The blockquote element marks up a large quotation, such as the sort you normally see in printed material that is preceeded by a colon in the introducing paragraph, indented, presented without quotation marks, and is several lines long.do i have to use blockqoute before putting <p>?
That falls to CSS, as should all presentation matters. Markup is, simply put, about "describing" document content - indicating what's a paragraph, what's a heading, what's a list, etc. CSS is about presenting it.what about aligning images and the <a> tags?
Mike
I might add that all of this information seems pretty good but, what you may be experiencing is something like so:
That's a big no no in all markup. Once you open a table, you need a row and a cell before using anything else:HTML Code:<table><p>
HTML Code:<table><tr><td><p>Hi</p></td></tr></table>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Not exactly on topic, but I've noticed that dreamweaver also opens (then closes) a <tbody> tag right after the table tag. What is this? Why? What purpose could it possibly serve, and should that be added to the list?
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
The <thead> and <tbody> tags are used to distinguish between the main body of the table and the "head" of the table. This could, for example, not be scrolled with the rest of the table, or be repeated if the table spans more than one page.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Twey's quite right.
All tables have at least one "body" table section. The opening and closing tags are both optional, so if the table only needs that one section, the body can be implied. If additional sections are required (two or more "bodies", or a "head" or "foot" section), the tbody elements must be included explicitly.
Mike
This is a new one on me. I claim ignorance and am curious how a table can span more than one page, unless you mean printed pages, not HTML pages.Originally Posted by Twey
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks