troubleshooting Question

smoothing out errors discovered by html validator

Avatar of elusivesoul
elusivesoul asked on
HTMLWeb Development Software
12 Comments1 Solution543 ViewsLast Modified:
Hi Guys,
I've tried the html validator at
http://www.htmlhelp.com/cgi-bin/validate.cgi#L86
It shows that i have errors on my page, here it is below. What exactly, am i doing wrong here to get these 3
errors below?
Thankyou in advance



Errors and Warnings

Line 86, character 48:
... reloadImages(" onMouseMove = " mover()"images\kof.gif")">
                                 ^Error: there is no attribute onMouseMove for this element (in this HTML version)

Line 86, character 64:
... nMouseMove = " mover()"images\kof.gif")">
                                 ^Error: images is not a member of a group specified for any attribute

Line 133, character 99:
... useover='MM_swapImage('Image3','images/kof.gif',1)'>

                                 ^Error: an attribute value literal can occur in an attribute specification list only after a vi delimiter

Input
  1   <?xml version="1.0" encoding="iso-8859-1"?>
  2   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3   <html xmlns="http://www.w3.org/1999/xhtml">
  4   <head>
  5   <title>Home</title>
  6   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  7   <script language='JavaScript' type='text/JavaScript'>
  8   <!--
  9   function MM_swapImgRestore() { //v3.0
 10     var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
 11   }
 12  
 13   function MM_preloadImages() { //v3.0
 14     var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
 15       var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
 16       if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
 17   }
 18  
 19   function MM_findObj(n, d) { //v4.01
 20     var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
 21       d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 22     if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
 23     for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
 24     if(!x && d.getElementById) x=d.getElementById(n); return x;
 25   }
 26  
 27   function MM_swapImage() { //v3.0
 28     var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
 29      if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
 30   }
 31   //-->
 32   </script>
 33   <script language='Javascript' type='text/JavaScript'>
 34  
 35   <!-- This script and many more are available free online at -->
 36   <!-- The JavaScript Source!! http://javascript.internet.com -->
 37   <!-- Original:  Tim Bruemmer (timaay78@hotmail.com) -->
 38   <!-- Web Site:  http://www.geocities.com/tim_coreteam -->
 39  
 40   <!-- Begin
 41   function mover()
 42   {
 43   document.all.x.style.left = event.clientX;
 44   document.all.x.style.top = event.clientY;
 45   document.all.x1.style.top = event.clientX;
 46   document.all.x1.style.left = event.clientY;
 47   document.all.x2.style.top = event.clientX;
 48   document.all.x2.style.right = event.clientY;
 49   document.all.x3.style.right = event.clientX;
 50   document.all.x3.style.top = event.clientY;
 51   document.all.x4.style.bottom= event.clientX;
 52   document.all.x4.style.right = event.clientY;
 53   document.all.x5.style.bottom= event.clientX;
 54   document.all.x5.style.left = event.clientY;
 55   document.all.x6.style.left= event.clientX;
 56   document.all.x6.style.bottom = event.clientY;
 57   document.all.x7.style.right= event.clientX;
 58   document.all.x7.style.bottom = event.clientY;
 59   }
 60   //  End -->
 61   </script>
 62   <style type="text/css">
 63   <!--
 64   .unnamed1 {
 65         font-family: Verdana, Arial, Helvetica, sans-serif;
 66         font-style: normal;
 67         line-height: normal;
 68         font-weight: normal;
 69         font-variant: normal;
 70         text-transform: lowercase;
 71         color: #000099;
 72         background-color: #CCCCCC;
 73         background-image: none;
 74         letter-spacing: normal;
 75         text-align: left;
 76         word-spacing: normal;
 77         white-space: normal;
 78   }
 79   -->
 80   </style>
 81   <link href="stylesheet.css" rel="stylesheet" type="text/css" />
 82   </head>
 83  
 84   <!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->
 85  
 86   <body onload="MM_preloadImages(" onMouseMove = " mover()"images\kof.gif")">
 87   <!-- STEP THREE: Copy this code into the BODY of your HTML document  -->
 88   <div id = "x" style = "position: absolute; filter: glow(strength = 3, color = red)"> Hello there! </div>
 89   <div id = "x1" style = "position: absolute; filter: glow(strength = 3, color = blue)"> Good to see you! </div>
 90   <div id = "x2" style = "position: absolute; filter: glow(strength = 3, color = blue)"> Hello there! </div>
 91   <div id = "x3" style = "position: absolute; filter: glow(strength = 3, color = red)"> Good to see you! </div>
 92   <div id = "x4" style = "position: absolute; filter: glow(strength = 3, color = green)"> Hello there! </div>
 93   <div id = "x5" style = "position: absolute; filter: glow(strength = 3, color = green)"> Good to see you! </div>
 94   <div id = "x6" style = "position: absolute; filter: glow(strength = 3, color = purple)"> Hello there! </div>
 95   <div id = "x7" style = "position: absolute; filter: glow(strength = 3, color = purple)"> Good to see you! </div>
 96  
 97  
 98  
 99  
100  
101  
102   <p align='center'>
103      <img src="../adel's webpage/images/taekwando title.gif" alt="taekwondo" width="293" height="295"/>
104   </p>
105  
106   <p align='center'>
107   <a href="index.htm">
108      <img src="../adel's webpage/images/home.jpg" alt="home"width= "200" height= "200"/>
109   </a>
110  
111   <a href="pages/gradings.htm">
112      <img src="../adel's webpage/images/gradings.jpg" alt="gradings" width="200" height="200"/>
113   </a>
114   <a href="pages/sparring.htm"><img src="../adel's webpage/images/sparring.jpg"alt="gradings"width="200"height="200"/>
115   </a>
116  
117   </p>
118  
119   <p align='center'>
120      <img src="images/historytitle.jpg" alt="taekwondo" width="200" height="200"/>
121   </p>
122   <br/>
123   <font size="3"> <font face="Verdana, Arial, Helvetica, sans-serif"> <font color="#990000">Taekwondo is the name of the
124   martial art turned modern international sport which has been independently developed
125   over about 20 centuries in Korea. The main feature of Taekwondo is that it is
126   a free-fighting combat sport using bare hands and feet to repel an opponent. Taekwondo
127   no more the sport of an eastern small country, Korea, has
128   become one of the world's most prominent sports participated in by some 40 million
129   people in more than 142 countries.The Taekwondo World Championships and Taekwondo
130   Asian Championships have been held ten times to date.<br/></font></font></font>
131    
132   <p align='center'><strong><em><font size="7">What is Taekwondo?</font></em></strong></p>
133   <h3 align='center'> <a href="#" onmouseout='MM_swapImgRestore()' onmouseover='MM_swapImage('Image3','images/kof.gif',1)'>
134     </a><img src="images/pic2.jpg" alt="pic1" name="Image6" width="158" height="296" border="0" id="Image6" />
135   </h3>
136   <p>
137     <font size="3"><font face="Verdana, Arial, Helvetica, sans-serif">
138     <font color="#990000"><br/>Taekwondo was developed as a defense against enemy attacks. In old days people
139     living simple lives lacked physical fitness and their bodies became bent in
140     their old age. Taekwondo also served to improve health, physical fitness and
141     poise of the people practicing it. Our belief is that Taekwondo-trained men
142     are selt-confident, not only in physical aspects but also in their mental discipline,
143     because they have developed superior techniques for personal entire body is
144     a weapon, and he is easily able to attack and beat off an aggressor with hands,
145     fists, elbows, knees, feet or any other part of his body. <br/>
146     In recent years, Taekwondo has become a modern amateur sport. It has become
147     a modern world sport with tradition and spirit of martial science maintained.
148     It was incorporated into regular curriculum of primary schools through colleges.
149     It became an integral part of training in the military. Taekwondo has become
150     a major entry in the annual athletic meet. Constitution, rules, regulations,
151     and promotion test riles were all developed to meet requirements as international
152     amateur sport.</font></font></font>
153   </p>
154   <br/>
155   <big><a href="#top">Top of page</a></big>
156   </body>
157  
158   </html>
159  
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 12 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros