[thelist] Little <img> tag problem

Joshua Olson joshua at waetech.com
Fri Dec 5 04:09:36 CST 2003

----- Original Message ----- 
From: "Scott Schrantz" <scotts at rci-nv.com>
Sent: Friday, December 05, 2003 3:45 AM

> You can fix it by setting vertical-align: text-bottom on the <img>
> tag, or by setting font-size: 0 on the <p> tag your images are in.
> Your images /are/ in a <p> tag, right? It's technically valid to put
> inline content directly in a <div>, but for me it's always a best
> practice to wrap everything in a <p>.


Please consider for a moment the purpose of a p tag.  It is supposed to mean
something semantically, not simply provide a container for elements on a

  From Webster's Revised Unabridged Dictionary:

  Paragraph: "one of several distinct subdivisions of a text
  intended to separate ideas"

If you are in the habit of wrapping "everything" in the p tag, then you
effectively undercut the meaning of a paragraph within the page.

So, while paragraph tags should be appropriate for most visible items within
a table-less page (which in theory should be mostly content anyways), there
are usually examples of individual things which are not technically
paragraphs.  In those cases a p tag would not be appropriate.

Joshua Olson
Web Application Engineer
WAE Tech Inc.

More information about the thelist mailing list