Newbie Error: End tag 'head' does not match the start tag 'link'.

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

    Newbie Error: End tag 'head' does not match the start tag 'link'.

    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>Internet Usage Terms and Conditions</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="css.php?color=000000" rel="stylesheet" type="text/css">
    </head>
    <iframe name="header" marginwidth=0 marginheight=0 scrolling="no" frameborder="0" width="855" height="40" src="welcome_head.php?res=notyet&uamip=192.168.182.1&uamport=3990&challenge=84fa96bbc24a062090d00bd72b338265&userurl=&nasid=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_main.php?res=notyet&uamip=192.168.182.1&uamport=3990&challenge=84fa96bbc24a062090d00bd72b338265&userurl=&nasid=634&mac=00-1F-3A-1E-C7-00"></iframe>
    </html>
    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
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Common error with xslt, the meta and link tags need to be closed:

    [code=xml]
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <link href="css.php?c olor=000000" rel="stylesheet " type="text/css"/>
    [/code]

    Comment

    • klaus654
      New Member
      • Mar 2008
      • 5

      #3
      Thanks so much for replying. Even knowing very very little of HTML, that was my guess as well.

      After fixing that, a bunch of other errors popped up. But I'm a learn-as-I-go kind of guy, and I was able to fix each of them by referencing line numbers in the error and with a little common sense.

      I think I'm down to the last error (and then I can spend some time tracking down the amateur that sent this program to market with all these inherent problems.) This last error does not mention a line or position, but I'm guessing the problem lies in the parameters following src="welcome_he ad.php etc etc Accordingly, I would guess that if there's a problem with that line, there's the same problem with the following line that appears to be almost identical.

      This is the only file I've got, and the code below reperesents the entire file, so if you can help me resolve this, there won't be more to come. I appreciate your time on this. I'm in the middle of nowhere up here in Montana- I exhausted all of my local resources when I asked my wife if she knew anything about XML coding. :)

      The code now generates the following error, and the code has changed to this:

      Error:
      Object reference not set to an instance of an object

      [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;nasid=634;m ac=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;nasid=634;m ac=00-1F-3A-1E-C7-00"></iframe>
      </html>
      [code]

      Comment

      • jkmyoung
        Recognized Expert Top Contributor
        • Mar 2006
        • 2057

        #4
        The errors probably lie in the linked files:

        welcome_head.ph p
        welcome_main.ph p
        css.php

        Would have to see those, and then it might be a PHP question instead.

        Comment

        • klaus654
          New Member
          • Mar 2008
          • 5

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

          Comment

          Working...