Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2013
    Location
    Were my backpack is!
    Posts
    19
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Unhappy need help understanding the validator error mesages

    Hello. I am trying to make all the code I write valid, so I started out with just my standard code frame work.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    	<link rel="stylesheet" type="text/css" href="css/HomePageStyle.css"/>
    	<title>Web Projects</title>
    </head>
    <body>
    </body>
    </html>
    I copied this into W3C validator (http://validator.w3.org/check), and still received a lot of errors. I have read the error messages but do not understand them.

    Please help me learn how to understand the validator. Thanks.

  • #2
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    850
    Thanks
    11
    Thanked 79 Times in 77 Posts
    1) You need a character encoding tag between the head tags.

    2) ".css"/>" does not require a closing when used with a strict doctype. Just with XHTML doctypes. This is causing the other flagged errors until you remove "/".
    Last edited by Major Payne; 12-30-2013 at 08:31 AM.
    ☠ ☠RON☠ ☠

  • Users who have thanked Major Payne for this post:

    Adrian888 (12-31-2013)

  • #3
    New Coder
    Join Date
    Dec 2013
    Location
    Were my backpack is!
    Posts
    19
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Ok, so I think I would use <meta charset="UTF-8"> ?

    Thanks.

  • #4
    New Coder
    Join Date
    Dec 2013
    Location
    Were my backpack is!
    Posts
    19
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Nevermind last post, I got it now. Thanks.

  • #5
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    850
    Thanks
    11
    Thanked 79 Times in 77 Posts
    More than welcome. Happy new year.
    ☠ ☠RON☠ ☠


  •  

    Posting Permissions

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