Rank: Member
Joined: 1/10/2005(UTC) Posts: 714
Thanks: 14 times Was thanked: 1 time(s) in 1 post(s)
|
<p> Tags vs <br /> - Which ones are better to seperate paragraphs?
|
|
|
|
Rank: Member
Joined: 12/23/2003(UTC) Posts: 909
|
I will say that I prefer <p> as I can isolate it via the stylesheet for additional formatting if needed.
Are you talking about:
<p>TEXT</p> <br /> <p>TEXT</p> |
|
|
|
|
Rank: Member
Joined: 1/10/2005(UTC) Posts: 714
Thanks: 14 times Was thanked: 1 time(s) in 1 post(s)
|
Yeah thats what i thought... but ive been using the <br /><br /> to isloate paragraphs. I was curious if i should start doing:
code: <p>Paragraph</p> <p>Paragraph</p>
wysiwyg: paragraph
paragraph
instead of doing this
code: Paragraph <br /><br /> Paragraph
wysiwyg paragraph
paragraph
|
|
|
|
Rank: Member
Joined: 12/23/2003(UTC) Posts: 909
|
I suggest <p></p> for the reason suggested above. Plus, it's just better code.... :) |
|
|
|
|
Rank: Member
Joined: 1/10/2005(UTC) Posts: 714
Thanks: 14 times Was thanked: 1 time(s) in 1 post(s)
|
yup yup... just wanted to make sure before i started something bad lol. thanks.
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Yeah, always use <p> for a paragraph (and don't forget to close the tag; for some reason a lot of people don't use the </p>). <br /> is for single line breaks within a paragraph, so really should only be used one at a time, if needed. |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
Bryan - Just a note that you shouldn't put <ul></ul> tags inside paragraphs when you start using the <p> tag. It's a small thing but it will keep your pages from validating if you break the rule.
|
|
|
|
Rank: Member
Joined: 1/10/2005(UTC) Posts: 714
Thanks: 14 times Was thanked: 1 time(s) in 1 post(s)
|
got it... Thats what ive been practicing <p></p> tags for a while but I looked back at some of my old pages and noticed using <br /><br /> to seperate the paragraphs and couldnt figure out why i did it lol. I havent ever used <ul></ul> inside the <p></p> tags as it messes everything up but thanks for the warning!
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
A lot of WYSIWYG editors do some serious damage in paragraphs and line breaks (not to mention practically everything else). I think that's how a lot of people end up with it, which is a shame, because that's how a lot of people learn HTML. |
|
|
|
|
Rank: Member
Joined: 1/10/2005(UTC) Posts: 714
Thanks: 14 times Was thanked: 1 time(s) in 1 post(s)
|
yeah i stopped using wysiwyg a long long time ago... fp 2002 i think (sf5 days). I still have a lot of products imported from back in those days that have yet to be updated. I guess i meant with wysiwyg above is showing what its like once it rendered in the browser.
Im still always finding new ways of coding... I have to go back and refresh my memory when i see something old ;)
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.