Results 1 to 8 of 8
  1. #1
    ABW Ambassador Doug247's Avatar
    Join Date
    January 18th, 2005
    Location
    DE USA
    Posts
    931
    What is valid HTML
    Ok here is the deal. I am designing a new site and want to get as many thing right from the beginning as I can.

    So I got a few pages finished and went to http://validator.w3.org/ and gave it my URL. When it check the site it found errors. No big deal I can fix them.

    I'd really like to know two things with respect to valid HTML and SEO.

    First, what is the difference between the following tags.

    <br> and <br/>.
    Which is considered valid and which is not. The W3C HTML Validator said <br> was wrong and thus not valid. But the is what my html editor put in for a line break.

    Second which is better to use for SEO

    Thanks,
    Doug

  2. #2
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    <br> - is HTML complaint.
    <br /> - is xHTML complaint


    Edit:

    Keep in mind that even Google failed validation.

    http://validator.w3.org/check?uri=www.google.com

    Failed validation, 56 errors

  3. #3
    ABW Ambassador Lanadili's Avatar
    Join Date
    February 23rd, 2007
    Location
    Shreveport, LA
    Posts
    1,114
    The difference is that the <br> is the old way of using a line break. The new way is <br />. Some tags change in HTML coding, and that is one of them. Same thing for using bold. It's now <strong></strong> instead of <b></b>.

    As far as SEO is concerned, I doubt there is any difference, but I'd stick with the newer tag of <br /> just to stay up to date on things.

  4. #4
    Member
    Join Date
    September 25th, 2006
    Posts
    71
    I use the old <br> tag on my site, and the same validator didn't seem to have a problem with it. From an SEO standpoint I seriously doubt there is any difference between <br> & <br/>

    Also, most browsers will interpret the <b></b> correctly (that I am aware of).

  5. #5
    ABW Ambassador Doug247's Avatar
    Join Date
    January 18th, 2005
    Location
    DE USA
    Posts
    931
    Quote Originally Posted by SeymourButts
    <br> - is HTML complaint.
    <br /> - is xHTML complaint

    http://validator.w3.org/check?uri=www.google.com

    Failed validation, 56 errors

    What is the difference between HTML and xHTML?? Just a newer standard?

    Thanks,
    Doug

  6. #6
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Nunya, Business
    Posts
    23,684
    "Second which is better to use for SEO"

    Has nothing to do with SEO, lots of old threads on this. Video of Matt Cutts saying it's not part of the algo, examples of all the search engines not validating and most major sites.

    As to what to use. Whichever one looks good in the browser. And there were also recent threads in the last view days that if your affiliate site validate, it's probably not tracking on a couple of networks.

    http://forum.abestweb.com/showthread...&highlight=amp

    Because you have to make changes to some of those affiliates links to get them to validate but those changes could cause tracking problems. How I read it.

  7. #7
    Affiliate Manager MINDsprinter's Avatar
    Join Date
    August 18th, 2006
    Location
    Washington, DC
    Posts
    1,436
    Validation does help in a couple areas though:

    1. It makes pages more likely to look the same across all browsers. Your pages may still look different in Firefox and IE, but valid code makes problems less likely and easier to fix.

    2. It makes things make a bit more sense. If you are using the same tags in the same way over and over, it is easier to see what is going on with your code at a glance and identify problems.

    Of course, some "valid" HTML is just silly, like the difference between <br> and <br/>.
    Jason Rosenbaum
    Affiliate Manager
    MINDsprinting

  8. #8
    ABW Ambassador 2busy's Avatar
    Join Date
    January 17th, 2005
    Location
    Tropical Mountaintop
    Posts
    5,636
    There are specific standards for each DOCTYPE declaration. You should not use <br /> if your DOCTYPE is not XHTML. The DOCTYPE declaration tells browsers how to interpret the page.
    Like Mindsprinter says, if your pages validate they will look the same on a wider range of browsers and resolutions.

  9. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Does this seem valid?
    By hilisa in forum Commission Junction - CJ
    Replies: 1
    Last Post: February 12th, 2005, 08:15 AM
  2. HTML in datafeed stays HTML in file?
    By Nintendo in forum WebMerge (Fourthworld.com)
    Replies: 1
    Last Post: August 17th, 2004, 10:05 PM

Posting Permissions

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