www.webdeveloper.com
Results 1 to 6 of 6

Thread: nelp me get rid of the errors on my site pls

  1. #1
    Join Date
    Nov 2005
    Posts
    120

    nelp me get rid of the errors on my site pls

    i have quiet alot of errors on my site but thay are all the same when i run
    http://validator.w3.org the only 2 thing it says is

    required attribute "ALT" not specified (on every image )
    and
    there is no attribute "LEFTMARGIN".( in this line <body leftmargin="0" )

    iv tryed to use html kit to clean up the code but every time i do
    when i try to use http://validator.w3.org it says

    Result: Failed validation,
    Encoding: us-ascii

    Sorry, I am unable to validate this document because on line 125, 144, 185, 260, 270 it contained one or more bytes that I cannot interpret as us-ascii (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.


    iv not got a clue what this means
    can someone help please
    thank you for your time

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    The alt attribute is required for all images. It's value is the image description.

    There is no need for any attributes in the <body> tag. Use css:
    Code:
    body {margin:0;}
    Being unable to validate has a number of causes:
    1. no/incorrect DTD
    2. incorrect charset
    3. an editor adding incompatible characters
    The top of your document should look something like this:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <title>My document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    If the document still does not validate, then remove the characters listed by the validator.
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Oct 2005
    Location
    Gold Coast, Australia
    Posts
    2,115
    add: alt="" to ever <img tag on your page, prefferably with an alternative description

    add: <style type="text/css">
    <!--
    body {margin: 0}
    -->
    </style>
    or to your css

  4. #4
    Join Date
    Nov 2005
    Posts
    120
    THATS JUST 1 OF MY PAGES I REALLY NEED A PROGRAM THAT I CAN PUT THE CODE INTO AND IT COMES OUT NICE AND CLEAN AND http://validator.w3.org WILL SAY ITS OK
    THANK YOU FOR YOUR TIME AGAIN PEOPLE

  5. #5
    Join Date
    Oct 2005
    Posts
    843
    im not sure a there is a program. when you make your page make sure you make it to the validation standard so when your done you dont have to go back and fix it.
    Welsh

  6. #6
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Quote Originally Posted by xtecltd
    THATS JUST 1 OF MY PAGES I REALLY NEED A PROGRAM THAT I CAN PUT THE CODE INTO AND IT COMES OUT NICE AND CLEAN AND http://validator.w3.org WILL SAY ITS OK
    THANK YOU FOR YOUR TIME AGAIN PEOPLE
    html Tidy will do that.
    A useful extension to FF is html validator(based on Tidy) which shows errors and warnings and can produce a corrected document at the click of a button.
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles