469,366 Members | 2,386 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

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.xml

Code for that file is here:


Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>Internet Usage Terms and Conditions</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <link href="css.php?color=000000" rel="stylesheet" type="text/css">
  6. </head>
  7. <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>
  8. <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>
  9. </html>
  10.  
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
Mar 17 '08 #1
4 21522
jkmyoung
2,057 Expert 2GB
Common error with xslt, the meta and link tags need to be closed:

Expand|Select|Wrap|Line Numbers
  1. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  2. <link href="css.php?color=000000" rel="stylesheet" type="text/css"/>
  3.  
Mar 17 '08 #2
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_head.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>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=84fa96bbc24a062090d00bd7 2b338265;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=84fa96bbc24a062090d00bd7 2b338265;nasid=634;mac=00-1F-3A-1E-C7-00"></iframe>
</html>
[code]
Mar 17 '08 #3
jkmyoung
2,057 Expert 2GB
The errors probably lie in the linked files:

welcome_head.php
welcome_main.php
css.php

Would have to see those, and then it might be a PHP question instead.
Mar 17 '08 #4
Thank you for your help, guys- turns out the developer had included wrong file entirely. Thanks for listening. :)
Mar 18 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

75 posts views Thread by Beni | last post: by
1 post views Thread by Suman | last post: by
2 posts views Thread by Denon | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.