Reply to Re: <p> or <br>

Your name:

Reply:


Posted by Jim Scott on 10/09/06 14:19

"Andy Dingley" <dingbat@codesmiths.com> wrote in news:1160399014.713784.222520
@c28g2000cwb.googlegroups.com:

> Jim Scott wrote:
>
>> Is it a debateable point or 'whatever suits' as to whether test is
>> presented using <p> or <br> tags?
>
> Neither - it's very clear.
>
> <p>Marks the boundaries of a paragraph. <br> is an inline element that
> marks a line break, where it occurs _within_ some piece of text. That's
> really all there is to it - it's pretty clearly stated, if only you
> follow the HTML spec through in detail.
>
> <br><br> is always wrong. You've broken the line once, how do you break
> it a second time?
>
> If you want a debate, then it's less clear-cut when you should use <p>
> and <div>. Obviously <p> is used for paragraphs and <div> should be
> used for "chunks fo text that aren't a grammatical paragraph", but this
> is a viable grammar question about similar HTML constructs when <p> vs.
> <br> is really comparing chalk and cheese.
>
Not quite.
On my site, which is almost all pictures with text, using <br> avoids a space
appearing between the text and the picture or is that because I use </p>?
--
Jim
Tyneside UK
http://www.jimscott.co.uk

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация