Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- BR vs P
- Mark Shapiro
December 6, 2010, 3:13 pm
rate this thread
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>?
Re: BR vs 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"
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>.
Re: BR vs P
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
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
Please respond to the group so others can share
- » does anybody know how to move <object> tag to top inside <td> element ?
- — Next thread in » HTML Markup Language
- » How to make a transparent image through which is clickable ?
- — Previous thread in » HTML Markup Language