Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > BR vs P

Reply
Thread Tools

BR vs P

 
 
Mark Shapiro
Guest
Posts: n/a
 
      12-06-2010
I am old school, and code pages by hand using
a plain text editor and FTP.

I have a big site, and use <BR><BR> a lot.
I've been told that it's better to use <P> </P>

But when I do that, use <P>, the text appears a
bit smaller and not as clean on most browsers
and computers. Is it a sin to keep using <BR><BR>?



--
plugs:
http://www.JudgmentBuy.com
 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      12-06-2010
Mark Shapiro wrote:

> I have a big site, and use <BR><BR> a lot.
> I've been told that it's better to use <P> </P>


It is. But it does not imply that you should change your site. In general,
it is waste of resources and often a considerable risk to "clean up"
existing pages.

> But when I do that, use <P>, the text appears a
> bit smaller and not as clean on most browsers
> and computers.


That's because your pages uses <font size = "4"> (which means "let the font
size be one step larger than the size the user should be assumed to have
chosen as most convenient to him"). The <p> markup is block level and
therefore breaks, on many modern browsers, the effect of <font>.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
 
Adrienne Boswell
Guest
Posts: n/a
 
      12-06-2010
Gazing into my crystal ball I observed (Mark
Shapiro) writing in news:1jt2h95.18ol33n78cnh2N%:

> I am old school, and code pages by hand using
> a plain text editor and FTP.
>
> I have a big site, and use <BR><BR> a lot.
> I've been told that it's better to use <P> </P>
>
> But when I do that, use <P>, the text appears a
> bit smaller and not as clean on most browsers
> and computers. Is it a sin to keep using <BR><BR>?
>
>
>


The difference between BR and P is that P is for marking up a paragraph,
and BR is a forced line break.

The P element is a block level element, which means it has default top
and bottom margin, about the same as <br><br>. You can use CSS to change
the margin on paragraph(s), to be larger or smaller, as the case may be.
Of course the advantage to this is that it is one change, instead of
removing <br>'s to adjust the space.

If you are using <br> to make the width of the text smaller, then there
are several ways of doing this.

1. Put the <p>'s inside of the containing div and adjust the width on
that.
2. Adjust the right and left margins on the <p> element.

Remember, a <br> is a _FORCED_ line break. I use it sparingly, for
headings, addresses, etc.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      12-06-2010
In article <1jt2h95.18ol33n78cnh2N%>,
(Mark Shapiro) wrote:

> I am old school, and code pages by hand using
> a plain text editor and FTP.


Reminds me of the childhood puzzle: "Charles the First walked and
talked after he had his head cut off"

--
dorayme
 
Reply With Quote
 
richard
Guest
Posts: n/a
 
      12-06-2010
On Mon, 6 Dec 2010 07:13:24 -0800, Mark Shapiro wrote:

> I am old school, and code pages by hand using
> a plain text editor and FTP.
>
> I have a big site, and use <BR><BR> a lot.
> I've been told that it's better to use <P> </P>
>
> But when I do that, use <P>, the text appears a
> bit smaller and not as clean on most browsers
> and computers. Is it a sin to keep using <BR><BR>?


Instead of <br><br> you could use <p></p> in one line and style it to give
the separation desired.
<p style="margin-bottom:20px;"></p>
Personally, I don't listen to the nitpickers. If I want the double breaks,
I use them.
 
Reply With Quote
 
Mark Shapiro
Guest
Posts: n/a
 
      12-07-2010
richard <> wrote:

> On Mon, 6 Dec 2010 07:13:24 -0800, Mark Shapiro wrote:
>
> > I am old school, and code pages by hand using
> > a plain text editor and FTP.
> >
> > I have a big site, and use <BR><BR> a lot.
> > I've been told that it's better to use <P> </P>
> >
> > But when I do that, use <P>, the text appears a
> > bit smaller and not as clean on most browsers
> > and computers. Is it a sin to keep using <BR><BR>?

>
> Instead of <br><br> you could use <p></p> in one line and style it to give
> the separation desired.
> <p style="margin-bottom:20px;"></p>
> Personally, I don't listen to the nitpickers. If I want the double breaks,
> I use them.


Thanks guys, I decided to just stick with BRs as it would
take days to change to Ps. For new pages I'll P it up.

--

http://www.JudgmentBuy.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57