View Full Version : Do you close <p> tags?


ham_let
06-26-2004, 09:22 PM
^ i hope my poll works... =P i don't close my <p> tags! i'm a rebel! lol j/k j/k lol

zetsubou
06-26-2004, 09:28 PM
Neither, I don't use <p> tags.

kicker91
06-26-2004, 09:43 PM
You should close every tag so it looks good in all browsers. :)

kittycat
06-26-2004, 10:24 PM
Yes, it's a habit I've developed :P

jessi15
06-26-2004, 10:34 PM
Yes, I always have.

salomeyasobko
06-26-2004, 10:35 PM
i forget/am too lazy to.. but i think i'll go back and fix that in my coding, it's a bad habit not to :blush:

starlet
06-27-2004, 12:19 AM
I dont...i end my <br>'s by doing <br /> but not my <p>'s for reasons i cant explain :lol:

pom
06-27-2004, 02:45 AM
I don't. :P At first I didn't even know you were supposed to, I didn't know you COULD, and it just stuck that way. :P

lefty
06-27-2004, 03:12 AM
I don't. :P At first I didn't even know you were supposed to, I didn't know you COULD, and it just stuck that way. :P
you and me both :P

Owlie42
06-27-2004, 03:39 AM
no...lazy.

ham_let
06-27-2004, 03:45 AM
you and me both :P
ahem. me three... LOL. when i first saw it on a NEOPETS HTML TUTORIAL... i was like WHAT!?!?? nonsense... (of course, whenever i write beginner html tuts i say u need to end <p> tags, just to make the wrld a better place. aren't i a good samaritan?

Karen_
06-27-2004, 04:21 AM
I never close mine, even though I know you're supposed to... and I didn't even know you were supposed to close your <br> lol

ham_let
06-27-2004, 04:23 AM
yea, you don't close <br> like this: </br>, but you can pretty much close everything with <blah /> to comply with some dumb rule. would i be righgtin saying you can close <img> with <img /> (i'd never do that, but it lookd cool)

pb&j
06-27-2004, 07:23 AM
yes, all tags should be closed.

the P tag is a set. as with any html tag set, they should be closed.
<p> </p>
no, it will probably not cause any problems in any known browsers, but it is considered correct coding practice and will help in future.

in XHTML coding, single tags must also be closed, thus the forward slash in them...
<br />
<img src="blah.gif" />

weird girl
06-27-2004, 11:07 AM
I used to do that all the time, but ever since I got into validating and junk, I now (most of the time anyway) close my <p> tags :P

westernrider
06-27-2004, 07:56 PM
well I just get lazy... I will think to myself "sophie... close the tags" but I just forget sometimes... but I try to... but I guess I will say no because of my lazyness

ham_let
06-28-2004, 07:11 PM
apparently the poll is really close... i thought most ppl *didn't* close <p> tags... or is that b/c we're in a forum full of experts? lol

dolce shanti
06-28-2004, 07:18 PM
Does it make any difference to close the <p> tag or not?

lefty
06-28-2004, 07:25 PM
I guess not, I haven't closed it for 9 years :P

Monkey Bizzle
06-28-2004, 08:01 PM
yes, all tags should be closed.

the P tag is a set. as with any html tag set, they should be closed.
<p> </p>
no, it will probably not cause any problems in any known browsers, but it is considered correct coding practice and will help in future.

in XHTML coding, single tags must also be closed, thus the forward slash in them...
<br />
<img src="blah.gif" />
so what you're saying then is that instead of <br>blahblah<br /> it is just <br />blah blah... and if most people don't close their <p> tags, wouldn't that make it a single tag, and you could do that the same way as <br> and <img>??

pb&j
06-28-2004, 09:14 PM
so what you're saying then is that instead of <br>blahblah<br /> it is just <br />blah blah... and if most people don't close their <p> tags, wouldn't that make it a single tag, and you could do that the same way as <br> and <img>??

HTML version...
text here <br>

XHTML version...
text here <br />

the break tag is a single entity, not a pair set.

the paragraph tag is a pair set having one starting and one ending tag.
if most people do not close their P tags, then essentially it is nesting a paragraph inside a paragraph inside a paragraph and so on...

the P tag is a set, not a single entity, thus <p /> would be an invalid code.

having an ending p tag may not be essential to visually see the webpage, but for good coding practices, it is best to put the ending in. some browsers like IE are very forgiving and will display webpages with bad coding in them. some browsers such as Mozilla can be strict and display garbage if the coding is garbage. the P tag ending probably isnt going to cause a problem, but in future browser versions, it may.

as stated before, it is good coding practice to enter a correct endings to each tag and it may be most benefitial in the future of your webpages.

kicker91
06-28-2004, 10:09 PM
I kinda graduated from <p> LOL. Divs are cooler. :D

sisqoluv
06-28-2004, 10:36 PM
I close them, but over the many years I've don't web design, I never really used them. I just started using them regulary this past month or so. However, I mostly used DIVs.

sjb
06-29-2004, 01:44 AM
I never used to,but ever since i started trying to make everything compatible with all browsers i have.

ProfBelen
06-29-2004, 02:07 AM
vat err tehese <p> taggs yeh spek ofe?(I think im going to speak like this from now on)

ham_let
06-29-2004, 03:52 AM
tehese <p> taggs weh spek ofe stahrt nieuw pahrhagrafz!!!11one

Margo
06-29-2004, 07:32 PM
I just started using html so I haven't really developed any habits yet. So far I close my <p> tags though.

neonick5647
06-29-2004, 07:36 PM
I don't use <p> tags because right now i am just working on the layout... :rolleyes: :)

But if i did use them I would close it with </p> :)

neonick5647
06-29-2004, 07:38 PM
But if i did use them I would close it with </p> :)

ProfBelen
06-29-2004, 07:39 PM
I just started using html so I haven't really developed any habits yet. So far I close my <p> tags though.
Its good to start good habits, so dont stop! :)
gootde liuek ome uwe witsh teh HTML!!!11one!1!

HermioneLovegoo
06-29-2004, 10:03 PM
I do, because if I ever switch to XHTML it might come in helpful.

twix2006
08-05-2004, 02:04 PM
I dont...i end my <br>'s by doing <br /> but not my <p>'s for reasons i cant explain :lol:

lol i do the exact opposite..but then again i don't really use <p> tags

LesPaul59
08-05-2004, 06:26 PM
I never used P I just did

Text
<br>
<br>
More Text
<br>
<br>
etc.

adrielle
08-06-2004, 02:29 PM
that's what I do :D
I kinda graduated from <p> LOL. Divs are cooler. :D
I always thought..that <p> was just for "<br><br>" purposes. :P Divs & <p>s are similar?


pomeranian_7
I don't. :P At first I didn't even know you were supposed to, I didn't know you COULD, and it just stuck that way. :P

Wolf~Pup
I never close mine, even though I know you're supposed to... and I didn't even know you were supposed to close your <br> lol
me and you and you all :lol:

I do, because if I ever switch to XHTML it might come in helpful.
*cough* What exactly is XHTML? *hides*

Chris
08-06-2004, 02:40 PM
I try to close every tag. Although, because im rubbish at tables, i always forget to close a <tr> or <td> or some other table tag.

hehe. :D

chris

Roxx
08-06-2004, 04:33 PM
i close all my tags, always did. Just a habit i guess.

stargrl329
08-06-2004, 05:20 PM
At first, the only tags I really closed were table tags, <style>, and <iframe> because they were the only ones that screwed up the page (in my browser anyway) if I didn't close them. *is ashamed of her past* Anyway, I read a few CSS books and lately I've been into all the semantic XHTML and CSS-for-presentation stuff, so I actually use p tags! And close them! Woo. :)

xero
08-06-2004, 06:08 PM
Were would you close the <p> tags? I never knew you could do that...

stargrl329
08-06-2004, 06:25 PM
Well, the text inside a <p> denotes a paragraph of information, so you would put a </p> at the end of the paragraph. The </p> tag will automatically put a space between itself and the next opening <p> tag. Example:

<p>Today I went to my cousin's house. It was fun.</p>

<p>Tomorrow I'm leaving on vacation. I should actually be packing right now.</p>

When the page is viewed, the paragraphs will appear with two carriage returns (one line of space) in between.

pb&j
08-06-2004, 07:41 PM
*cough* What exactly is XHTML? *hides*
it stands for eXtensible Hyper Text Markup Language.
in very basic terms, it is HTML still but follows a very strict rules for what is or is not allowed.

Tsuki Usagi
08-06-2004, 08:15 PM
I close them whenever I think about it. I haven't made a website for years :P

Munchkin
08-06-2004, 09:07 PM
I don't use <p> so...yeah. lol. I use <br> or <dd>. It's probably very bad html, but ...it works. lol, I didn't even know you're SUPPOSED to close <br> tags.

maztrin
12-01-2004, 09:10 AM
i always close my tags its like a reflex

theserpent
12-04-2004, 03:13 AM
I never close my <p> tags, I just don't really find the need to. I know I should, but I usually pay more atention to the other tags, and ignore closing those ones.
All I do is:

<p>Yesterday I had a social studies final<p>Tomorrow, I have my science final

And it shows up like this:

Yesterday I had a social studies final

Tomorrow, I have my science final

So in my opinion, you don't really need to close paragraph tags.

CoolChibi
05-10-2005, 02:46 AM
After I learned that not closing <p> tags can mess with how your page is displayed in some browsers, I got to the point where I ALWAYS do it :)

pb&j
05-10-2005, 03:27 AM
please do not bring up old threads.