Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18

help with html code please

This is a discussion on help with html code please within the Off-Topic & Chit Chat forums, part of the Focus on Members category; i have a few advertisers on my site and this is a copy of the html i did. it works ...

  1. #1
    Member
    Real Name
    paul
    Join Date
    Jan 2008
    Posts
    45
    Liked
    0 times

    help with html code please

    i have a few advertisers on my site and this is a copy of the html i did. it works but that dosnt always mean it is correct. i have it so tittle and picture are both clickable. should i have it that they are like one to click? thank you in advance. here is what i have

    </script><center>
    <a href="http://gtmdecals.com
    "target="_blank">
    <img src="Bicycle Motor Forum - Motorized Bicycle: Engine Kits, Manuals, And Help>
    <div class="smallfont" align="center"><a href="http://gtmdecals.com"
    target="_blank">Motorized Bicycle Decals!</a>
    <br />
    <br />

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Code:
    <div class="smallfont" style="text-align:center; margin: 0 0 25px 0;">
    <a href="http://gtmdecals.com" target="_blank"><img src="/images/misc/decals.gif" alt="" style="display: block;" />Motorized Bicycle Decals!</a>
    </div>
    should do the same thing

  3. #3
    Member
    Real Name
    paul
    Join Date
    Jan 2008
    Posts
    45
    Liked
    0 times
    thank you brian

  4. #4
    Member
    Real Name
    paul
    Join Date
    Jan 2008
    Posts
    45
    Liked
    0 times

  5. #5
    Member
    Real Name
    paul
    Join Date
    Jan 2008
    Posts
    45
    Liked
    0 times
    i have got rid of over 90 html errors using the above. thank you brian. it apears thier is something else i need to do. here are 3 errors on the above. not sure if it matter but i have the ads stacked one after another. here is a copy and paste of the errors from wc3 validator. any help would be apreciated

    1. Line 52, Column 216: NET-enabling start-tag not immediately followed by null end-tag
    2. … src="/images/misc/decals.gif" alt=""/style="display: block;">Motorized Bicycl…
    3. This error may occur when there is a mistake in how a self-closing tag is closed, e.g '.../ >'. The proper syntax is '... />' (note the position of the space).

    1. Line 52, Column 216: end tag for "img" omitted, but OMITTAG NO was specified … src="/images/misc/decals.gif" alt=""/style="display: block;">Motorized Bicycl…
      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".


    1. Line 52, Column 174: start tag was here …http://gtmdecals.com" target="_blank"><img src="/images/misc/decals.gif" alt="…

    the ads are on motorbicycling.com

  6. #6
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    it looks like the copied code is wrong. re-copy it. the alt="" / slash should be at the end, not in the middle before the style directive.

    re-copy the above code block in this post.

  7. #7
    Member
    Real Name
    paul
    Join Date
    Jan 2008
    Posts
    45
    Liked
    0 times
    that did the trick. you are awesome brian and thank you very much

  8. #8
    Member
    Real Name
    paul
    Join Date
    Jan 2008
    Posts
    45
    Liked
    0 times

    more help please

    so far the errors have reduced from 208 down to 64 so i am getting thier . the one below has 16 errors showing up mostly from the afilaite code. here it is. their is other ads with afiliate codes so i imagine i will be able to pretty much have most of it cleaned up after i learn this. thank you again in advance


    HTML Code:
    </script><center>
    <a href="http://www.bikeberry.com/index.php?ref=2&cPath=30&affiliate_banner_id=1
    "target="_blank"> <img src="http://motorbicycling.com/images/misc/bbb.gif">
    </center>
    </a>

  9. #9
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    5 times
    Any image tag should be self closed, meaning add a / right before the >. Also, it should have an alt attribute (Can be blank).

    Example: <img src="" alt="" />
    The Forum Hosting - Forum Hosting from the Forum Experts

  10. #10
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Additionally center is not a valid html You need to make sure you are using valid code.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  11. #11
    Member
    Real Name
    paul
    Join Date
    Jan 2008
    Posts
    45
    Liked
    0 times
    i changed it to this. is this correct also on the url it has all kinds of errors because of the = & and a few other symbols. should i change this. thank you again


    HTML Code:
    <div style = "text-align: center">
    <a href="http://www.bikeberry.com/index.php?ref=2&cPath=30&affiliate_banner_id=1" target="_blank"><img src="http://motorbicycling.com/images/misc/bbb.gif" alt = "" /></a>
    </div>

  12. #12
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    5 times
    Remove the spaces before and after the = in the opening div. Throw a semicolon after the word center. Change all instances of just & to &amp;
    The Forum Hosting - Forum Hosting from the Forum Experts

  13. #13
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    all &'s (and other special characters) in links must be html encoded to meet xhtml validation.


    http://www.bikeberry.com/index.php?ref=2&cPath=30&affiliate_banner_id=1

    should be

    http://www.bikeberry.com/index.php?ref=2&amp;cPath=30&amp;affiliate_banner_ id=1

  14. #14
    Member
    Real Name
    paul
    Join Date
    Jan 2008
    Posts
    45
    Liked
    0 times
    cool got it. you guys are awesome. you don't know how much i apreciate your help. i started with 209 html errors and now down to 23 i couldnt have got this far with out you. hopefully i can figure out the rest by myself. i have learned alot from your examples. if i get one i cant figure out i will ask but i like to research first and keep playing with it because when i do get showed the right way or figure it out i remember better

  15. #15
    Member
    Real Name
    paul
    Join Date
    Jan 2008
    Posts
    45
    Liked
    0 times
    tried everything with this one that i can think of and got either no change or more errors. here is the html
    HTML Code:
    <a href="http://motorbicycling.com/external.php?type=RSS2
    "target="_blank"> <img src=http://motorbicycling.com/images/rss.gif>
    </a> <div class="smallfont" align="center"><a href="http://motorbicycling.com/external.php?type=RSS2 
    " target="_blank">Motorbicycling.com RSS Feed for your blog</a>
    here are the errors

    1. Line 189, Column 70: required attribute "alt" not specified
      …p://motorbicycling.com/images/rss.bmp"> </a> <div class="smallfont" align="cen…
      The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
      Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
    2. Line 189, Column 71: end tag for "img" omitted, but OMITTAG NO was specified …://motorbicycling.com/images/rss.bmp"></a> <div class="smallfont" align="cent…
      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    3. Line 189, Column 19: start tag was here "target="_blank"> <img src="http://motorbicycling.com/images/rss.bmp"> </a> <di…
    4. Line 190, Column 69: end tag for "div" omitted, but OMITTAG NO was specified …ng.com RSS Feed for your blog</a> </td> </tr> </table> </td> </tr> </table>…
      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    5. Line 189, Column 77: start tag was here …orbicycling.com/images/rss.bmp"> </a> <div class="smallfont" align="center"><a…

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Virtual HTML Code Error - Displaying code on forumhome
    By paintballer.ie in forum Troubleshooting
    Replies: 2
    Last Post: 03-24-2009, 06:26 AM
  2. Cleanup HTML code
    By MikeWarner in forum General Discussion
    Replies: 6
    Last Post: 03-05-2009, 10:16 AM
  3. Cleanup HTML Code
    By Toddy38 in forum Deutsch
    Replies: 2
    Last Post: 02-19-2006, 08:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •