Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Validating my HTML

Validating my HTML

Scheduled Pinned Locked Moved Web Development
helphtmltutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BobInNJ
    wrote on last edited by
    #1

    I wanted to validate my HTMl so I went to the site: http://validator.w3.org. The top line of my html is:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
    g/TR/html4/loose.dtd">

    The message I am getting from the validator is:

    Byte-Order Mark found in UTF-8 File.

    The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.

    As far as I can tell, I have no special characters in the file. I would like to fix this error but I have no idea how to do so. I am hoping somebody here can help. Thanks Bob

    P J 2 Replies Last reply
    0
    • B BobInNJ

      I wanted to validate my HTMl so I went to the site: http://validator.w3.org. The top line of my html is:

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
      g/TR/html4/loose.dtd">

      The message I am getting from the validator is:

      Byte-Order Mark found in UTF-8 File.

      The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.

      As far as I can tell, I have no special characters in the file. I would like to fix this error but I have no idea how to do so. I am hoping somebody here can help. Thanks Bob

      P Offline
      P Offline
      Peter_in_2780
      wrote on last edited by
      #2

      1. What editor (or IDE or whatever) did you create the HTML with? 2. What are you looking at it with? If you have a hex editor, have a look at the start of the file. Many "smart" editors don't show you the BOM, and some might even use it intelligently. Cheers, Peter

      Software rusts. Simon Stephenson, ca 1994.

      B 1 Reply Last reply
      0
      • P Peter_in_2780

        1. What editor (or IDE or whatever) did you create the HTML with? 2. What are you looking at it with? If you have a hex editor, have a look at the start of the file. Many "smart" editors don't show you the BOM, and some might even use it intelligently. Cheers, Peter

        Software rusts. Simon Stephenson, ca 1994.

        B Offline
        B Offline
        BobInNJ
        wrote on last edited by
        #3

        Peter, Thanks for the response. I am on a Windows machine. I am using the version of VI that comes with cygwin. I have also looked at the file by dumping it out with od (also part of cygwin). Neither tool shows and funny characters. I am also wondering, if my HTML goes through the validator with out any errors, does it really matter? Will it improve my search engine ranking? Bob

        P 1 Reply Last reply
        0
        • B BobInNJ

          Peter, Thanks for the response. I am on a Windows machine. I am using the version of VI that comes with cygwin. I have also looked at the file by dumping it out with od (also part of cygwin). Neither tool shows and funny characters. I am also wondering, if my HTML goes through the validator with out any errors, does it really matter? Will it improve my search engine ranking? Bob

          P Offline
          P Offline
          Peter_in_2780
          wrote on last edited by
          #4

          No errors from the validator is good, but not essential by any means. I would guess that a majority of good working web pages would fail 'strict' validation in some way. Browsers are much more forgiving. (Just try one with unterminated lists, badly formed tables, etc. The browser makes a pretty good guess.) Validation and search engine rankings are orthogonal - they have no correlation at all. I'm guessing the search ending scrapers are just as tolerant of malformed HTML. Cheers, Peter

          Software rusts. Simon Stephenson, ca 1994.

          1 Reply Last reply
          0
          • B BobInNJ

            I wanted to validate my HTMl so I went to the site: http://validator.w3.org. The top line of my html is:

            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
            g/TR/html4/loose.dtd">

            The message I am getting from the validator is:

            Byte-Order Mark found in UTF-8 File.

            The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.

            As far as I can tell, I have no special characters in the file. I would like to fix this error but I have no idea how to do so. I am hoping somebody here can help. Thanks Bob

            J Offline
            J Offline
            JaneBlue
            wrote on last edited by
            #5

            Did you type the message in using Dreamweaver, or did you write the content in another app and paste it in? I ask because if you used a word processor sometimes it's hard to tell a special character from a similar regular character. For example, double and single curly quotation marks can look just like straight quotations marks when pasted into another app, but they'll mess things up every time. Have you considered using the HTML 5 DOCTYPE? Might still give you the problem, but if you're making new pages why not make the break?

            HTML and CSS Tutorials from BoogieJack.com

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups