0

im getting these Errors from W3C

Line 41, Column 143: Stray end tag body.

…t1_02.gif','images/Part1_03.gif','images/Part1_04.gif','images/Part1_05.png')"> ✉ Line 41, Column 143: An body start tag seen but an element of the same type was already open.

…t1_02.gif','images/Part1_03.gif','images/Part1_04.gif','images/Part1_05.png')"> ✉ Line 41, Column 143: Cannot recover after last error. Any further errors will be ignored.

…t1_02.gif','images/Part1_03.gif','images/Part1_04.gif','images/Part1_05.png')">

How can i fix that, And my code is:

http://pastebin.com/g11fz1qP

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
Thrillofit
  • 11
  • 2

1 Answers1

0

I have checked you code and this error is occur due to the closing of the tag. You have not close the img tag properly.

The valid tag is:

<img src="link_to_image" alt=""/>

use the backward slash to end the img tag.

Code Lღver
  • 15,573
  • 16
  • 56
  • 75
  • I have done it and it solved the first error with Stray, Now i have the two other left; (Line 41, Column 143: An body start tag seen but an element of the same type was already open. And Line 41, Column 143: Cannot recover after last error. Any further errors will be ignored.) This is the code what have the problem. – Thrillofit Mar 21 '13 at 11:09
  • you have used the tag two time. on one page you can use only one time tag. remove the first tag and the end tag of the that you have used before the . – Code Lღver Mar 21 '13 at 11:23
  • I Have removed now both, and , but still getting the same problem. http://pastebin.com/JhUPJZ5k – Thrillofit Mar 21 '13 at 12:26
  • I think you are newbie in HTML. well no problem. put your script in head tag and close the body tag before the closing of html tag means: – Code Lღver Mar 21 '13 at 12:42
  • I have just started to learn about HTML, so yeah, im kinda newbie hehe :P Anyways, i guess i have done it right (http://pastebin.com/ethUxZdn ) <--- Update#2 but it still comes the same problem, – Thrillofit Mar 21 '13 at 12:58
  • now this is my last effort and this will give you surely proper solution. – Code Lღver Mar 21 '13 at 13:07
  • you have not define the function MM_preloadImages . you should also learn the function(OOPS) to learn the function. in javascript pass the arguments as given in onload function. – Code Lღver Mar 21 '13 at 13:10
  • I still dont understand what you mean :/ But what can i do, i mean what should i change in the code to make it work? Anyways i have also done a another new docuemnt with that script and bodyonLoad and it works but i dont have any input text, So i dont know, Can it cause it? – Thrillofit Mar 21 '13 at 16:31
  • Nevermind! Got it worked somehow, i dont even know what i did but it works! – Thrillofit Mar 21 '13 at 18:23