You are here: Re: how to make it break lines « HTML « IT news, forums, messages
Re: how to make it break lines

Posted by Jukka K. Korpela on 05/20/06 22:35

Jonathan N. Little <lws4art@centralva.net> scripsit:

> In a document if your want to start a new line your create a new
> paragraph, right?

Nope.

> Well, same in HTML

Nope.

> <p>first line: there are some messages</p>
> <p>second line: another line</p>

In addition to being semantically wrong (a line does not normally constitute
a paragraph), this causes more than desired, such as vertical spacing in
graphic rendering.

> If both are contextually in the same paragraph but your require the
> second part to be on another line, happens in poetry a lot then BR
> (break line)
>
> <p>first line: there are some messages<br><second line: another
> line</p>

It still isn't a paragraph. Using <div> would be more appropriate. Moreover,
it's somewhat more logical and potentially more useful (especially in
styling) to wrap each line inside a <div> rather than use command-like
markup like <br>. That is,

<div>first line: there are some messages</div>
<div>second line: another line</div>

 

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

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