Basic HTML? End tag 'head' does not match the start tag 'link'.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • klaus654
    New Member
    • Mar 2008
    • 5

    Basic HTML? End tag 'head' does not match the start tag 'link'.

    I have posted this also in the XML forum, as the code below actually came from an XML doc, but I think it's a basic HTML issue:

    Original post
    I am an IT consultant, but I work entirely on the hardware and networking side of things. I don't work with much (any) code. So most of what you guys do within this forum may as well be in Chinese. But I've got an issue that I hope you might help me resolve:

    I've got a problem in front of me- a program that upon startup throws an error:

    End tag 'head' does not match the start tag 'link'.

    I believe I've narrowed the problem down to a file called updateversion.x ml

    Code for that file is here:


    [CODE]
    <html>
    <head>
    <title>Intern et Usage Terms and Conditions</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="css.php?c olor=000000" rel="stylesheet " type="text/css">
    </head>
    <iframe name="header" marginwidth=0 marginheight=0 scrolling="no" frameborder="0" width="855" height="40" src="welcome_he ad.php?res=noty et&uamip=192.16 8.182.1&uamport =3990&challenge =84fa96bbc24a06 2090d00bd72b338 265&userurl=&na sid=634&mac=00-1F-3A-1E-C7-00"></iframe>
    <iframe name="main" marginwidth=0 marginheight=0 scrolling="no" frameborder="0" width="1000" height="1500" src="welcome_ma in.php?res=noty et&uamip=192.16 8.182.1&uamport =3990&challenge =84fa96bbc24a06 2090d00bd72b338 265&userurl=&na sid=634&mac=00-1F-3A-1E-C7-00"></iframe>
    </html>
    [CODE]

    I hope I posted that code correctly and I don't get kicked out of this forum. :) If anyone here has an answer, I'll be most appreciative.

    Thanks,

    Jake
    Montana, USA
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    #2
    Originally posted by klaus654
    I have posted this also in the XML forum, as the code below actually came from an XML doc, but I think it's a basic HTML issue:

    Original post
    I am an IT consultant, but I work entirely on the hardware and networking side of things. I don't work with much (any) code. So most of what you guys do within this forum may as well be in Chinese. But I've got an issue that I hope you might help me resolve:

    I've got a problem in front of me- a program that upon startup throws an error:

    End tag 'head' does not match the start tag 'link'.

    I believe I've narrowed the problem down to a file called updateversion.x ml

    Code for that file is here:


    [CODE]
    <html>
    <head>
    <title>Intern et Usage Terms and Conditions</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="css.php?c olor=000000" rel="stylesheet " type="text/css">
    </head>
    <iframe name="header" marginwidth=0 marginheight=0 scrolling="no" frameborder="0" width="855" height="40" src="welcome_he ad.php?res=noty et&uamip=192.16 8.182.1&uamport =3990&challenge =84fa96bbc24a06 2090d00bd72b338 265&userurl=&na sid=634&mac=00-1F-3A-1E-C7-00"></iframe>
    <iframe name="main" marginwidth=0 marginheight=0 scrolling="no" frameborder="0" width="1000" height="1500" src="welcome_ma in.php?res=noty et&uamip=192.16 8.182.1&uamport =3990&challenge =84fa96bbc24a06 2090d00bd72b338 265&userurl=&na sid=634&mac=00-1F-3A-1E-C7-00"></iframe>
    </html>
    [CODE]

    I hope I posted that code correctly and I don't get kicked out of this forum. :) If anyone here has an answer, I'll be most appreciative.

    Thanks,

    Jake
    Montana, USA
    Hello Jake.
    I see a couple of errors
    you have <link href="css.php?
    should read <link href="css.php"

    you have <iframe name="header" marginwidth=0 marginheight=0 scrolling="no" frameborder="0" width="855" height="40" src="welcome_he ad.php?

    should read <iframe name="header" marginwidth=0 marginheight=0 scrolling="no" frameborder="0" width="855" height="40" src="welcome_he ad.php"


    you have <iframe name="main" marginwidth=0 marginheight=0 scrolling="no" frameborder="0" width="1000" height="1500" src="welcome_ma in.php?

    should read as
    <iframe name="main" marginwidth=0 marginheight=0 scrolling="no" frameborder="0" width="1000" height="1500" src="welcome_ma in.php"

    note typical iframe looks like this
    [HTML]<iframe src="abc.php" name="test" width="200" height="78" scrolling="no"> </iframe>[/HTML]

    Hope that help you
    nomad
    PS make sure you have spaces between each field

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      I have to run out for a while but the error is probably caused by running html through an xml parser. What this means is XML is always looking for closing tags, such as <head></head>. The link element in html has no closing tag so it throws the error.

      Comment

      • klaus654
        New Member
        • Mar 2008
        • 5

        #4
        Thank you for your help, guys- turns out the developer had included wrong file entirely. Thanks for listening. :)

        Comment

        Working...