Repeated HTML elements

Discussion in 'Search Engine Optimization' started by zeefu21, Sep 17, 2009.

  1. #1
    If i use repeated html elements like say
    <tr>
    <td><img src="images/spacer.gif" /></td>
    <td><img src="images/spacer.gif" /></td>
    <td><img src="images/spacer.gif" /></td>
    <td><img src="images/spacer.gif" /></td>
    <td><img src="images/spacer.gif" /></td>
    <td><img src="images/spacer.gif" /></td>
    <td><img src="images/spacer.gif" /></td>
    ........

    </tr>

    Will it affect the SEO of my webpage?
     
    zeefu21, Sep 17, 2009 IP
  2. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #2
    No, but you need to add ALT tags to each image.
     
    aaron_nimocks, Sep 17, 2009 IP
  3. zeefu21

    zeefu21 Peon

    Messages:
    78
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    alt with just blank "" ?
     
    zeefu21, Sep 17, 2009 IP
  4. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #4
    I would just add the word "spacer". It should describe what it is.
     
    aaron_nimocks, Sep 17, 2009 IP
  5. zeefu21

    zeefu21 Peon

    Messages:
    78
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    zeefu21, Sep 17, 2009 IP
  6. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #6
    Bad advice IMO...

    You should NOT add alt tags to formatting images... That causes screen readers to read out "Spacer", "Spacer", "Spacer", "Single Pixel Gif","blue veritcal bar for tiling", etc. for blind people. That is BAD accessibility design.

    Only add alt tags to images that are NOT used for formatting real images, pictures, etc. And the alt text should describe what the image/picture is of... and NOT be stuffed w/ keywords you want to rank for. If you can work keywords into the description of the image/picture then great! But if not, go with what describes the actual picture/image.

    The main purpose of the alt tag is for accessiblity (i.e. to provide a description of the image for screen readers for handicapped people), NOT for SEO.
     
    Last edited: Sep 17, 2009
    Canonical, Sep 17, 2009 IP
  7. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #7
    And I wouldn't worry about code:content ratio too much OTHER than to say, don't do styling using HTML elements (<font> for example) and HTML attributes (align="center" for example). Move all styling for your page elements to external CSS files. This also implies where possible use <div>s over <table>s... but if you can't... no biggie... use tables.

    Also put all JavaScript that you can in external Javascript files.

    Both of the above techniques reduce page load times, decrease your code:content ratio, and more importantly make maintaining your site MUCH easier since you can simply change the external file to apply a styling change sitewide instead of having to edit every page on the site to change it's styling or modify a single javascript function in the external file rather than having to change the javascript function on every page where it is defined and used.

    code:content ratio is a super fine-tuning SEO technique that carries very little weight. Work on this after ALL other on-page, on-site, and off-site SEO is completed.
     
    Canonical, Sep 17, 2009 IP
  8. zeefu21

    zeefu21 Peon

    Messages:
    78
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thankyou CAN for your views.Appreciate it.
     
    zeefu21, Sep 17, 2009 IP