You are here: Re: line break « HTML « IT news, forums, messages
Re: line break

Posted by david on 06/11/07 11:06

Thanks Ben and everyone else for your explanations.

David



"Ben C" <spamspam@spam.eggs> wrote in message
news:slrnf6oom3.s94.spamspam@bowser.marioworld...
> On 2007-06-10, David <none@none.com> wrote:
>> i'm fairly new to html so forgive me if this is a silly question
>>
>> i can't work out the difference between <br> and <br />
>> both seem to work ok for me
>> in what cirumstances should each be used?
>
> They mean the same. <br/> is XHTML, <br> is HTML. Most browsers will
> tolerate <br/> even in HTML, but that doesn't make it right, so use
> <br> if you're using HTML.
>
> Opinion of the gurus on alt.html etc. is that HTML is preferred over
> XHTML.
>
>> also to make paragraphs i've been using <br> to make a gap between text
>> buut now i've found <p> </p>
>> is it more proper to use <p> than <br> or doesn't it matter?
>
> Use <p> for paragraphs, <br> to break lines. What's the difference
> between starting a new paragraph and putting in a line break? You
> decide. If you use <p> there's more flexibility when it comes to styling
> the paragraphs with CSS.
>
> In XHTML you have to close paragraphs with </p>. In HTML you don't.

 

Navigation:

[Reply to this 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

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