[pmwiki-users] CSS question related to FGS

Patrick R. Michaud pmichaud at pobox.com
Tue Feb 15 15:13:40 CST 2005


On Tue, Feb 15, 2005 at 04:04:18PM -0500, Bronwyn Boltwood wrote:
> > Should I be using <p>s instead?
> 
> You should only use a p tag if the text inside is genuinely a
> paragraph.  That's what they mean by clean, semantic markup.
> 
> > How do <div>s and <p>s compare?  One 'better' than the other?
> 
> A div is a generic block element -- it doesn't have any built-in
> presentation or semantic meaning.  It is a better choice if you're
> grouping content for layout purposes.
> 
> > If I wanted to place two divs side-by-side horizontally would that
> > require a table structure?
> 
> Not necessarily, but depending on what browsers you're trying to
> support and how complicated a layout you're aiming for you might want
> to.

Also, despite all of the (deserved) bad press about people using <table>s
to solve layout issues, if what you're displaying is in fact a *table*
with rows and columns of data (as many form-sorts of items are likely
to be), then <table> is indeed the correct choice.  :-)

Pm



More information about the pmwiki-users mailing list