Advice Articles

  • Beginners
    Just getting started? Loads of powerful advice here for beginners.
  • Intermediate
    Got a handle on the basics? Find more advanced topics covered here.
  • Advanced
    Warning! Advanced topics covered here.
  • Affiliate resources
    Affiliate marketing resources for affiliates and affiliate program managers tools, websites, books and articles.
  • Product reviews
    Candid reviews of the latest products to take you to the next level.


 

Affiliate Marketing Forum

FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups   RegisterRegister ProfileProfile  Log in to check your private messagesPrivate Messages Log inLog in  
<br> or <p> tags
Goto page 1, 2  Next
Affiliate Marketing Forum Index -> Do-It-Your-Selfers
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bradley



Joined: 24 Feb 2004
Posts: 78
Location: Chesterfield, Mo. Suburb of St. louis

PostPosted: Thu Jan 06, 2005 10:51 pm    Post subject: <br> or <p> tags Reply with quote

Does it make much difference in using a <br> or <p> tags. I have seen people do both.

Also, should those tags be CAPS..<BR> ?

Thanks,

Chris
_________________
All the Best,

Chris Bradley
Turn Your Ordinary Business Into A Cash-Flow, Money-Making Marketing Machine

Keyword Saturation Report
Back to top View user's profile Send private message
edburdo



Joined: 14 Jul 2003
Posts: 1744
Location: Bangor, Maine

PostPosted: Thu Jan 06, 2005 10:58 pm    Post subject: Reply with quote

If you are using regular HTML, then the case doesn't matter. If your using validated XHTML, then they need to be lower case, and the <br /> tag should be closed (as in my example).

W3C Schools ( http://www.w3schools.com/ ) has some good articles about HTML.

BR and P tags do different things, so you would be using them both.

The <p>This is a paragraph</p> tags are for a paragraph.

The <br />
tag is just to put in a break in the text. Often you use the <br /> inside of the <p></p> tags.
_________________
Eric D. Burdo
They Made $6,513 a day With Clickbank Doing This...
Back to top View user's profile Send private message Visit poster's website
bradley



Joined: 24 Feb 2004
Posts: 78
Location: Chesterfield, Mo. Suburb of St. louis

PostPosted: Thu Jan 06, 2005 11:33 pm    Post subject: Reply with quote

Eric,

Thanks for replying. I know have seen some sites who use the <br> instead of the <p> tags. I have always used the </p> tags to end the paragraph but i do have some articles i have to submit to article directories and they all have the <br> tags b/c they were done in a text editor.

One more question comes to mind, What can happen if i dont use a closing tag on a paragraph? I know i have some articles right now that i dont use the </p> tag, i just have <p>. Now everything looks fine but didnt know if it could cause some probs down the road.

Chris
_________________
All the Best,

Chris Bradley
Turn Your Ordinary Business Into A Cash-Flow, Money-Making Marketing Machine

Keyword Saturation Report
Back to top View user's profile Send private message
Charlie



Joined: 22 Aug 2003
Posts: 3305
Location: UK

PostPosted: Fri Jan 07, 2005 12:15 pm    Post subject: Reply with quote

bradley wrote:
What can happen if i dont use a closing tag on a paragraph? I know i have some articles right now that i dont use the </p> tag, i just have <p>. Now everything looks fine but didnt know if it could cause some probs down the road.

I've never closed <p> tags and haven't had any problems I'm aware of.

Regarding good old fashioned simple HTML <br> tags...

I have an unwritten rule that I never use more than one at a time. If you feel tempted, it means there's almost certainly a better way. Smile

Hope this helps,
Charlie.
_________________
"Before I speak, I have something important to say."
- Groucho Marx
Back to top View user's profile Send private message
edburdo



Joined: 14 Jul 2003
Posts: 1744
Location: Bangor, Maine

PostPosted: Fri Jan 07, 2005 2:16 pm    Post subject: Reply with quote

Normally, not closing a <p> tag won't hurt you... unless your trying to use validated XHTML, in which case it won't validate. Razz

Some tags will cause really wierd display if not closed.
_________________
Eric D. Burdo
They Made $6,513 a day With Clickbank Doing This...
Back to top View user's profile Send private message Visit poster's website
Charlie



Joined: 22 Aug 2003
Posts: 3305
Location: UK

PostPosted: Fri Jan 07, 2005 3:14 pm    Post subject: Reply with quote

edburdo wrote:
Normally, not closing a <p> tag won't hurt you... unless your trying to use validated XHTML, in which case it won't validate. Razz

I suppose I should have suspected as much! Rolling Eyes

But I have to admit, I'm far from convinced of the worth of all this XHTML and "validated" stuff. Is it really necessary for most people?

Take this clever new-fangled XHTML break tag. What does it do that the old HTML <br> doesn't? I bet it's confusing a few people.

Quote:
Some tags will cause really wierd display if not closed.

Yes even in plain old (unvalidated) HTML, too. Wink

Rest assured I do usually close tags. <p> is a special case.

Cheers,
Charlie.
_________________
"Before I speak, I have something important to say."
- Groucho Marx
Back to top View user's profile Send private message
oohdale



Joined: 03 Mar 2005
Posts: 8
Location: Humansville MO

PostPosted: Thu Mar 10, 2005 9:44 pm    Post subject: Tags Reply with quote

I recommend always use the closing tags.

Get used to using tables too, even though some may disagree.

Like if you want to use <big and forget to use the closing tag for /big> then all the text below that tag will also be large text too.
_________________
Tommy oohdale.com Brown
Back to top View user's profile Send private message Send e-mail Visit poster's website
Andrea Thomson



Joined: 14 Sep 2004
Posts: 110
Location: Vancouver, BC Canada

PostPosted: Fri Mar 11, 2005 2:30 am    Post subject: Reply with quote

shift-enter creates a single line break <br> to shift your content to the next line without creating a full *paragraph* break.

I personally like using closing tags as it helps me to track my code. And, I do want my code to be as clean and precise as possible for the SE's.
Totally agree with edburdo that this is the way to go - validation is important and will likely become more important to our business. The search engines want to be able to read through clean code - so that means we need to follow the *standards* set by w3.org as much as possible.

Michael Campbell reviewed a similar topic in his newsletter... advising to adhere to the w3.org standards and keep a pulse on these rules. The search engines pay attention to the w3.org so I guess we should too.

my 2 cents Wink
_________________
Andrea Thomson

professional web designs .:. affordable templates ... and coming soon affiliate templates
Back to top View user's profile Send private message Visit poster's website
shelfimage



Joined: 11 Mar 2005
Posts: 3
Location: Maine

PostPosted: Fri Mar 11, 2005 2:30 am    Post subject: Reply with quote

I noticed a line-height difference when using a br vs a p tag to separate paragraphs of text or other content on a page. It seems to hold true for both MSIE, firefox, and Netscape. Also, removing the "space" seems to cause a difference as well
Code:
 <p>?</p>  vs <p></p>


For example:
The space between the two blocks of text below will be greater here using <p> tags:
Code:

<p>Excitment is always generated when hearing a "presentation drum roll" or listening to the drum cadence of a marching band.</p>
<p> </p>
<p>Excitment is always generated when hearing a "presentation drum roll" or listening to the drum cadence of a marching band.</p>

Please note the examples above should have had the space character " " but it isn't showing in my previews...

The space between the two blocks here will not be as high using <br>:
Code:

<p>Excitment is always generated when hearing a "presentation drum roll" or listening to the drum cadence of a marching band.</p>
<br />
<p>Excitment is always generated when hearing a "presentation drum roll" or listening to the drum cadence of a marching band.</p>


I found on some occassions that firefox will interpet the line-height of <p></p> the same as a <br> unless you insert the ? in the paragah tags. And this probably holds tru for any in-line tag: h1, h2, etc...
_________________
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo (1863-1913)
...like cross-browser compatibility & search engine placement!
:: http://www.Maine-Webworks.com ::
Back to top View user's profile Send private message Visit poster's website
edburdo



Joined: 14 Jul 2003
Posts: 1744
Location: Bangor, Maine

PostPosted: Fri Mar 11, 2005 3:54 am    Post subject: Reply with quote

Part of that spacing different is just the way the BR and P tags are rendered. You can control that using CSS.

Personally, I try to get everything to validate, and I dislike tables. Good CSS loads quicker, and is easier to modify in the long run...

And since I try to validate everything, you have to close tags. All of them...
_________________
Eric D. Burdo
They Made $6,513 a day With Clickbank Doing This...
Back to top View user's profile Send private message Visit poster's website
Phil Tanny



Joined: 22 Aug 2003
Posts: 1322
Location: Gainesville Florida USA

PostPosted: Fri Mar 11, 2005 5:35 am    Post subject: Reply with quote

Call me old fashioned, but I've been using <br> tags with wild abandon for 10 years and never had a problem best I can tell.
_________________
Free Email Discussion Group For Your Site
Your visitors will build your site for you.
http://Discussion-For-You.com
Back to top View user's profile Send private message Visit poster's website
Charlie



Joined: 22 Aug 2003
Posts: 3305
Location: UK

PostPosted: Fri Mar 11, 2005 2:29 pm    Post subject: Reply with quote

Andrea Thomson wrote:
Michael Campbell reviewed a similar topic in his newsletter... advising to adhere to the w3.org standards and keep a pulse on these rules. The search engines pay attention to the w3.org so I guess we should too.

I read that, too, and it was hardly the sort of evidence I was hoping to find, though I'm glad I did.

I preferred the good old days when everything was so simple. Rolling Eyes Wink

Cheers,
Charlie.
_________________
"Before I speak, I have something important to say."
- Groucho Marx
Back to top View user's profile Send private message
edburdo



Joined: 14 Jul 2003
Posts: 1744
Location: Bangor, Maine

PostPosted: Fri Mar 11, 2005 4:14 pm    Post subject: Reply with quote

Charlie wrote:
I preferred the good old days when everything was so simple. Rolling Eyes Wink .


And you had to use the same browser to view the site as it was developed in? Twisted Evil

Much of the W3C standards aren't hard to follow... especially if you have a good HTML tool that does validation on the fly (DW does, and I think the new FP does as well). Or get something like HTMLTidy to do it for you.

The biggest change for me with making my code XHTML compliant was the case of my tags. I always did ALL UPPER and now they are all lower.
_________________
Eric D. Burdo
They Made $6,513 a day With Clickbank Doing This...
Back to top View user's profile Send private message Visit poster's website
shelfimage



Joined: 11 Mar 2005
Posts: 3
Location: Maine

PostPosted: Fri Mar 11, 2005 11:15 pm    Post subject: <br> or <p> tags and our Rabbit trail.... :) Reply with quote

Yep,
And keep an eye on your DOCTYPE statement when using xhtml.

I found the strict interpetion of xhtml, or xhtml 1.1, is VERY particluar and not forgiving. It caused a simple table layout to render differently compared to xhtml 1.0 transistional or html4.01 transistional loose interpretations. The table was unusable for it's purpose until I changed DOCTYPE.
_________________
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo (1863-1913)
...like cross-browser compatibility & search engine placement!
:: http://www.Maine-Webworks.com ::
Back to top View user's profile Send private message Visit poster's website
Charlie



Joined: 22 Aug 2003
Posts: 3305
Location: UK

PostPosted: Mon Mar 14, 2005 11:05 am    Post subject: Reply with quote

edburdo wrote:
Charlie wrote:
I preferred the good old days when everything was so simple. Rolling Eyes Wink .


And you had to use the same browser to view the site as it was developed in? Twisted Evil

I think it's fair to say that the simpler the site, the better it has worked with all browsers at any moment in time.

These standards seem to be aimed at people who are obsessed with screwing the last tweak out of CSS (say) for reasons of prettiness.

Yes, I'd rather things looked the same with all browsers, but being forced to declare compliance with web standards (mark 27?) does not appeal... when all I'm trying to do is write simple text based sites.

Evidence that you actually get penalised in the SERPS for not having a complinace declaration (even though the code is valid) says it all.

Quote:
Much of the W3C standards aren't hard to follow... especially if you have a good HTML tool that does validation on the fly (DW does, and I think the new FP does as well). Or get something like HTMLTidy to do it for you.

What's wrong with writing simple code that works on all main browsers?

Quote:
The biggest change for me with making my code XHTML compliant was the case of my tags. I always did ALL UPPER and now they are all lower.

Yes, this is nothing more than a change of fad. Why should the case be so important?

Cheers,
Charlie.
_________________
"Before I speak, I have something important to say."
- Groucho Marx
Back to top View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Affiliate Marketing Forum Index -> Do-It-Your-Selfers All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum





Your host: Allan Gardyne.
Earning a good living from affiliate programs since 1998.