Should I place a <br> within a H1 tag?

Discussion in 'HTML & Website Design' started by Arimor, Feb 12, 2011.

  1. #1
    Hi

    I am using a landing page template where by the H1 title I am going to use is too big/long and thus needs breaking up.

    If I place a <br> within the H1 header to split the sentence into two lines, will this affect SEO or will the Google spider still read it as one whole sentence?

    Thanks in advance for your help.
     
    Arimor, Feb 12, 2011 IP
  2. ForgottenCreature

    ForgottenCreature Notable Member

    Messages:
    7,473
    Likes Received:
    173
    Best Answers:
    0
    Trophy Points:
    260
    #2
    Why don't you make the h1 tag smaller? You can use font sizes for this.
     
    ForgottenCreature, Feb 12, 2011 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    Do as you wish. This will have no affect on SEO.
     
    drhowarddrfine, Feb 12, 2011 IP
  4. truefunnystories

    truefunnystories Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    make font-size smaller, for example, 14px, 13px ...
    you can try it until the sentence is not split into two lines, style.css as below:
    h1 {
    font-size: smaller;
    }
     
    truefunnystories, Feb 12, 2011 IP
  5. Filter57

    Filter57 Peon

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Search engines are going to read the h1 tag even when <br> is in it. Not sure if this is w3c validated though.
    Like someone mentioned before, you could make h1 tag smaller via css and avoid breaking up the line.
    You can also specify the size for other h tags on the page.

    for example:
    h1{font-size:14px;font-weight:normal;text-decoration:none;letter-spacing:1px;line-height:25px;}
     
    Filter57, Feb 12, 2011 IP
  6. pakwatan

    pakwatan Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i think it will not affect seo. use <br /> instead <br>
     
    pakwatan, Feb 13, 2011 IP
  7. AtSeaDesign

    AtSeaDesign Active Member

    Messages:
    172
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    93
    #7
    if you want it to break between words, set the size on the <h1>
    
    h1 {width: 100px;height: 25px}
    
    Code (markup):
    If you want the text to fit on one line, doe as above to make the size smaller
     
    AtSeaDesign, Feb 13, 2011 IP
  8. Arimor

    Arimor Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks for all your help, I have taken your advice and corrected my H1 header.
     
    Arimor, Feb 13, 2011 IP
  9. News Updates

    News Updates Member

    Messages:
    490
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    35
    #9
    use <strong> rather than <b>. for SEO
     
    News Updates, Feb 13, 2011 IP
  10. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #10
    Then you did it wrong.
     
    drhowarddrfine, Feb 13, 2011 IP
  11. allwebactivities

    allwebactivities Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Use customize H1 tag with css like:
    h1
    {
    font-size:16px;
    font-family:arial;
    font-weight:bold;
    }
     
    allwebactivities, Feb 13, 2011 IP
  12. flasher5

    flasher5 Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Yes you can. <br/> is like content with in paragraph, so you can use it like text.
     
    flasher5, Feb 13, 2011 IP
  13. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #13
    yes <br/> is the proper tag to use as <br> is not closed as it should be
     
    srisen2, Feb 14, 2011 IP
  14. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Technically, you should never use <br /> for a formatting issue. You really should not use <br /> in headings, paragraphs, etc. just because you do not like the way it looks.

    If the H1 tag looks good on other pages, but not on a couple, then your headings are getting too lengthy. From an SEO viewpoint, less is better in this case. Headings that are too lengthy detract from your targeted keywords for the page.

    My suggestion is correct the heading CSS so it is uniform across all pages. Then if the heading gets to be too long, shorten it by removing words from the heading.
     
    Dodger, Feb 14, 2011 IP
  15. ashishy.freelancer

    ashishy.freelancer Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    hi,
    its better you implement a style tag in that
    <h1 style="font-size: 24px">whatever</h1>
    breaking h1 tag will not look good.
     
    ashishy.freelancer, Feb 14, 2011 IP
  16. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Ooooh Inline styles! Aren't we classy.

    And yes, that was a smart-azz comment.
     
    Dodger, Feb 14, 2011 IP
  17. DOCtriN

    DOCtriN Well-Known Member

    Messages:
    184
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #17
    You can use CSS to customize your H1 tag rather than use another tag like <br/>
     
    DOCtriN, Feb 14, 2011 IP
  18. Bapinder

    Bapinder Well-Known Member

    Messages:
    151
    Likes Received:
    7
    Best Answers:
    3
    Trophy Points:
    120
    #18
    I wouldn't recommend it. I would use css and add line-height to it.
     
    Bapinder, Feb 14, 2011 IP
  19. DmitryS

    DmitryS Active Member

    Messages:
    79
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #19

    i dont think there should be any problem
     
    DmitryS, Feb 14, 2011 IP
  20. almo3lem

    almo3lem Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    This will have no affect on your sentence
     
    almo3lem, Feb 14, 2011 IP