Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > [p] tags...utitlity?

[p] tags...utitlity?
Thread Tools
Mac Elite
Join Date: Feb 2001
Location: Los Angeles, CA, USA
Status: Offline
Reply With Quote
Jun 9, 2001, 03:00 AM
 
i personally hate using <p> tags. i would much rather use two <br> tags instead if i want to start a new paragraph with a line break in between. whats the utility of <p> tags over <br> tags? i really havent found any need to use <p> tags. what do you guys think?
     
Administrator
Join Date: Mar 2000
Location: Land of the Easily Amused
Status: Offline
Reply With Quote
Jun 9, 2001, 03:55 AM
 
I never use <font face = "courier">&lt;P&gt;</font> tags. The paragraph tag is just supposed to make it easy to separate sections of text (by automatically putting space between them).

I prefer the <font face = "courier">&lt;DIV&gt;</font> tag myself. Supposedly it's more correct to use <font face = "courier">&lt;DIV ALIGN="CENTER"&gt;</font> than <font face = "courier">&lt;CENTER&gt;</font>. Why do I use DIV ALIGN as opposed to P ALIGN? I have no clue. Just seems more right to me.
     
Professional Poster
Join Date: Dec 2000
Location: boulder, co
Status: Offline
Reply With Quote
Jun 9, 2001, 05:39 AM
 
I do the div align center thing instead of the center tag too (too lazy to use teletype)

but why use &lt;P&gt;?

it's a paragraph... I dunno. I use it for blocks of text. For new lines I use BR.
Ad Astra Per Aspera - Semper Exploro
     
Moderator
Join Date: Sep 2000
Location: Irvine, CA
Status: Offline
Reply With Quote
Jun 9, 2001, 10:19 AM
 
It all depends on what you want in your webpage I guess. Most of the time for me, I will use the &lt;p&gt; tags simply because there is less to type and I usually dont use BBedit's palettes.
{{{ mindwaves }}}
     
Mac Elite
Join Date: Oct 1999
Location: Chicago, IL USA
Status: Offline
Reply With Quote
Jun 9, 2001, 01:14 PM
 
Why Does It Hurt When I &lt;P&gt;?



Good read, and sort of indirectly relevant.

[ 06-09-2001: Message edited by: Joshua ]
Safe in the womb of an everlasting night
You find the darkness can give the brightest light.
     
fobside  (op)
Mac Elite
Join Date: Feb 2001
Location: Los Angeles, CA, USA
Status: Offline
Reply With Quote
Jun 9, 2001, 01:29 PM
 
Originally posted by Joshua:
<STRONG>Why Does It Hurt When I &lt;P&gt;?



Good read, and sort of indirectly relevant.

[ 06-09-2001: Message edited by: Joshua ]</STRONG>
thats an interesting way to title that article. is there a burning sensation when you &lt;p&gt;?
     
Dedicated MacNNer
Join Date: Oct 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Jun 9, 2001, 01:30 PM
 
From experience, I usually use &lt;p&gt; tags for blocks of content, to establish paragraphs. The &lt;p&gt; tag adds an extra line, and I believe also triggers certain formatting stuff specific to that browser. Not really much different than using two &lt;br&gt; tags in a row.

However, &lt;p&gt; tags can work differently than 2 &lt;br&gt; tags in certain situations, like if there are no text in a section of HTML, and you use &lt;p&gt; then it will not actually do any formatting for some reason.

Generally, what I do is use &lt;br&gt; and &lt;div&gt; tags when I'm laying out graphics and othe page formatting stuff, and use &lt;p&gt; tags when I'm creating content, and formatting content.

To each their own, really. HTML is byzantine, anyway.
     
Professional Poster
Join Date: Dec 2000
Location: boulder, co
Status: Offline
Reply With Quote
Jun 9, 2001, 01:39 PM
 
Now that I can actually think clearly, I usually use P for blocks of text because I have a special CSS definition for that tag. Defining BODY confuses netscape, so I just define P.
Ad Astra Per Aspera - Semper Exploro
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jun 13, 2001, 08:09 AM
 
The utility of the &lt;p&gt; tag is that it defines the structure of your document, not the presentation. This allows a user's browser to present paragraphs in whatever manner is most appropriate for it. You can't go with with &lt;br /&gt; tags.

That alone should be enough reason. If not, here's another one: readability. Your code is more readable if you have tags that clearly show what you're trying to do, as a &lt;p&gt;tag does. This applies to humans and browsers alike, by the way.

And if that's not enough reason for you, it saves a keystroke per paragraph
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 12:46 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2