SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Markup validation

    I have created an empty webpage with a title
    (Peter de Wit's Cafe). It was quite an achievement for me merely to find out how to get that far, and to upload it. I will now work out how to put some content in!!!!!!!

    My problem is that when I tried to validate the html with W3C Markup Validation Service, the result was as follows:

    "Error line 7 column 6 end tag for "html" which is not finished"
    It then indicates that ">" is missing from the end of the closing tag "</html (> in red underlined).

    When I checked the original in textedit it is correctly entered as </html>.
    So I dont know what to make of it.

    Any suggestions gratefully accepted.

    Musician1

  2. #2
    SitePoint Addict
    Join Date
    Oct 2006
    Posts
    210
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you give us a URL so we can look at the page? That might help get you an answer.

  3. #3
    SitePoint Wizard drhowarddrfine's Avatar
    Join Date
    Aug 2005
    Posts
    3,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    More than likely it is not that tag itself but something earlier in the code that confuses the validator.

  4. #4
    SitePoint Zealot NinjaNoodles's Avatar
    Join Date
    Oct 2006
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree with drhowarddrfine.

    Please post the code so we can have a look.

  5. #5
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    markup validation

    Quote Originally Posted by mikemckinney View Post
    Can you give us a URL so we can look at the page? That might help get you an answer.
    Hallo. This is the URL ( I think ?)

    file:///Users/peterdewit/Sites/CAFE%20WEBSITE%20folder/peterdewitscafe:1.index.html

    And this is what I typed into textedit:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Peter de Wit's Cafe</title>
    </head>
    </html>

    Can you identify the problem ?
    This is the first time I tried this. It took a long time just to work that out, even without any content. I needed to find out if it would work !!!!!

    Regards Musician1

  6. #6
    SitePoint Wizard bronze trophy Tailslide's Avatar
    Join Date
    Feb 2006
    Location
    Bedford, UK
    Posts
    1,687
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Peter de Wit's Cafe</title>
    </head>
    <body>
    
    </body>
    </html>
    Little Blue Plane Web Design
    Blood, Sweat & Rust - A Land Rover restoration project

  7. #7
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, the lack of the opening and closing BODY tags tripped up the validator (I'd say confused, but it's really not, since the BODY element is required).

  8. #8
    SitePoint Wizard drhowarddrfine's Avatar
    Join Date
    Aug 2005
    Posts
    3,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    btw, the url you give is only to the file on your computer and, no, we can't get to it.

  9. #9
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    markup validation

    Thanks very much for adviced re my markup.

    That was an excellent tip about putting a body element in.

    You might be interested to know there was a further problem which I have now resolved.

    It was neccessary to input the charset=utf-8 details inside the head element. Other people might find that that useful to know when building a site for the first time in XHTML.

    My html has now been succesfully validated1!!!!!!!!!!!!!!!!!!!!
    I call that a good result.

    Musician1


Bookmarks

Posting Permissions

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