H tags and br

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Martin
Rank II - Novice
Posts: 21
Joined: Thu Feb 17, 2005 12:08 pm

H tags and br

Post by Martin »

Would anyone happen to know if the h tags would still work with the google engines, when you use a br tag in between the opening and closing tag?

For example

<h1>This is a <br>long line of text</h1>

Seeing as the Google ranking algorithm values the h1 tag as important because it nomally contains important text. But this text is now being broken up by the br tag. Would that have any negative effect at all?
WHUK_Barb

Re: H tags and br

Post by WHUK_Barb »

A common misuse of the <br> tag is to create spaces or gaps in your content. WYSIWYG editors are notorious for injecting multiple line breaks or empty paragraph tags. The right way would be to use <br> to insert a line break in a sentence. One can use paragraph elements to split the content and use CSS margins to alter the spacing between them.

Talking about <h1> header tag, there should ideally be only one H1 tag on a webpage. It defines the main theme of a page. Having such a page structure should cause no harm to a sites rankings in SERPs.
krowe
Rank 0 - Newcomer
Posts: 1
Joined: Sat Jul 27, 2013 8:49 pm

Re: H tags and br

Post by krowe »

Yes it will still work. However, be careful about how you use it. Make sure it's for the good of the visitor/user. I have been working as an SEO Freelancer for a long time and still continue to believe that SEO is most powerful if you be at least 90% natural.

Cheers,
Krowe -