Kenny Graham napisaĆ(a):
Why you wouldn't say that date in this case is not paragraph?
Paragraph in html is just block of text and this is block of text
content isn't?
No, a div is a generic block of text. A paragraph is an actual paragraph.
We don't have 'date' element in html therefore we need to take more
universal element which in first row for me is 'p'.. (universal element
for text content)
The universal elements for text content are spans and divs. The
paragraph element has a clear semantic meaning (a paragraph), so it's
not universal.
.. after that would be 'div' which is universal for any
content but I think using it to wrap text is nearly same misconception
as using divs for lists.
Using divs for lists in incorrect, because the is an element
specifically for lists. There is no element specifically for dates,
so a div is span is appropriate for a date.
Div is generic block.. not generic block of text.
Div can contain both inline and block elements.. and it's generally used
to group content..so content can be positioned for e.g. as left sidebar
block.
In most cases it groups block elements as for grouping inline there are
other dedicated elements as span which is inline itself (so it should be
used between inline content) and p block element (so it should be used
between block elements) for grouping inline text content.
http://www.w3.org/TR/html401/struct/global.html#edef-DIV - see first
example over there
Paragraph is just separated text content..
http://en.wikipedia.org/wiki/Paragraph
and mind that html is not sophisticated word processor..were paragraph
may have more stricter meaning.
Also this pages sounds logically to me (while they're not html specs):
http://big.faceless.org/products/report/docs/tags/tags/div.html
http://big.faceless.org/products/report/docs/tags/tags/p.html
Actually I've been there before.. I thought that paragraph is strictly
for 'paragraphs' which to my understanding are just separated contents
of texts in articles..
so if it's not article then it can't be paragraph and I found myself
using p element quite rarely.. but after dispute under some (Polish)
blog entry I was put to point that in html P is about any separate text
content not strictly 'paragraphs'.
So how is it really?
--
Mariusz Nowak
Skype: mariuszn3
AIM: mariuszn3
WWW: http://www.medikoo.com
XHTML/CSS Coding: http://cxc.medikoo.com
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************