<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>Why won't my code validate? | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/</link>
  <description>A Markup forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>05/14/05, 134 36 2005 2005:%i:1116102971 16:36:11</pubDate>
  <lastBuildDate>06/07/13, 158 54 2013 2013:%i:1370588096 02:54:56</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>David  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1938</link>
    <description><![CDATA[Hi guys, I'm having a problem validating a local page. It's just the single error that I get:<br /><br /><blockquote>Line 70, column 6: end tag for &quot;HEAD&quot; which is not finished<br /><br /><br />Most likely, You nested tags and closed them in the wrong order. For example &lt;p&gt;&lt;em&gt;...&lt;/p&gt; is not acceptable, as &lt;em&gt; must be closed before &lt;p&gt;. Acceptable nesting is: &lt;p&gt;&lt;em&gt;...&lt;/em&gt;&lt;/p&gt;<br /><br />Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is &quot;not finished&quot;, not complete.<br /></blockquote><br />I checked my tags and they seem to be in order. Any ideas? There's rather a lot of javascript, I'm afraid, but I thought I should include it since I think the problem might be in there.<br /><code><br />&lt;head&gt;<br /> &nbsp;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;<br /> &nbsp;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot;&gt;<br /> &nbsp;&lt;style type=&quot;text/css&quot;&gt;<br /> &nbsp; &nbsp;li#win1, #win2, #win3 {<br /> &nbsp; &nbsp; &nbsp;visibility: hidden<br /> &nbsp; &nbsp;}<br /> &nbsp; &nbsp;<br /> &nbsp; &nbsp;a#linkto3, #backonestep {<br /> &nbsp; &nbsp; &nbsp;visibility: hidden<br /> &nbsp; &nbsp;}<br /> &nbsp; &nbsp;<br /> &nbsp; &nbsp;a#revealmore2, #backtointro {<br /> &nbsp; &nbsp; &nbsp;visibility: visible<br /> &nbsp; &nbsp;}<br /> &nbsp; &nbsp;<br /> &nbsp; &nbsp;img#imgwin2 {<br /> &nbsp; &nbsp; &nbsp;visibility: hidden;<br /> &nbsp; &nbsp; &nbsp;right: 100px;<br /> &nbsp; &nbsp; &nbsp;top: 30px<br /> &nbsp; &nbsp;}<br /> &nbsp;&lt;/style&gt;<br /> &nbsp;&lt;script type=&quot;application/x-javascript&quot;&gt;<br /> &nbsp; &nbsp; &nbsp;&lt;!--<br /><br /> &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp;function nextslide(slide) {<br /> &nbsp; &nbsp; &nbsp;if(document.getElementById) {<br /> &nbsp; &nbsp; &nbsp; &nbsp;for(i=2;i&lt;5;i++) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;document.getElementById(&quot;s&quot;+i).style.visibility=&quot;hidden&quot;;<br /> &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp;document.getElementById(&quot;s&quot;+slide).style.visibility=&quot;visible&quot;;<br /> &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp;}<br /> &nbsp; &nbsp;<br /> &nbsp; &nbsp;var n=1<br /> &nbsp; &nbsp;<br /> &nbsp; &nbsp;function revealmore() {<br /> &nbsp; &nbsp; &nbsp;//show 1st, 2nd and 3rd list items and reveal corresponding pictures<br /> &nbsp; &nbsp; &nbsp;if(document.getElementById) {<br /> &nbsp; &nbsp; &nbsp; &nbsp;document.getElementById(&quot;win&quot;+n).style.visibility=&quot;visible&quot;;<br /> &nbsp; &nbsp; &nbsp; &nbsp;document.getElementById(&quot;imgwin&quot;+n).style.visibility=&quot;visible&quot;;<br /> &nbsp; &nbsp; &nbsp; &nbsp;if(n==1) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;document.getElementById(&quot;backonestep&quot<img src="/images/emoticons/wink.png" class="smiley" />.style.visibility=&quot;visible&quot;;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;document.getElementById(&quot;backtointro&quot<img src="/images/emoticons/wink.png" class="smiley" />.style.visiblity=&quot;hidden&quot;;<br /> &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp;n+=1;<br /> &nbsp; &nbsp; &nbsp; &nbsp;if(n==4) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;document.getElementById(&quot;revealmore2&quot<img src="/images/emoticons/wink.png" class="smiley" />.style.visibility=&quot;hidden&quot;;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;document.getElementById(&quot;linkto3&quot<img src="/images/emoticons/wink.png" class="smiley" />.style.visibility=&quot;visible&quot;;<br /> &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp;}<br /> &nbsp; &nbsp;<br /> &nbsp; &nbsp;function revealless() {<br /> &nbsp; &nbsp; &nbsp;if(document.getElementById) {<br /> &nbsp; &nbsp; &nbsp; &nbsp;n-=1;<br /> &nbsp; &nbsp; &nbsp; &nbsp;if(n==0) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;replace(&quot;gimpUI.html&quot<img src="/images/emoticons/wink.png" class="smiley" /><br /> &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp;else { &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;document.getElementById(&quot;win&quot;+n).style.visibility=&quot;hidden&quot;;<br /> &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp;--&gt;<br /> &nbsp;&lt;/script&gt;<br />&lt;/head&gt;<br /></code>]]></description>
    <pubDate>05/14/05, 134 36 2005 2005:%i:1116102971 16:36:11</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1938</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1939</link>
    <description><![CDATA[Make sure your Javascript statements are teminated properly!<br /><br />eg<br /><br />var n=1;]]></description>
    <pubDate>05/15/05, 135 36 2005 2005:%i:1116142567 03:36:07</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1939</guid>
   </item>
     <item>
    <title>David  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1940</link>
    <description><![CDATA[I thought you only needed to terminate statements in javascript when there's more than one. Anyway, it turns out it's nothing to do with the js anyway. I think it might be something to do with how I've got my style sheets lined up, but I'm not too sure. I still can't validate, either way. &nbsp;:<img src="/images/emoticons/smile.png" class="smiley" />]]></description>
    <pubDate>05/16/05, 136 46 2005 2005:%i:1116251166 09:46:06</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1940</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1941</link>
    <description><![CDATA[No, every Javascript line should be terminated with a semi-colon. You are confusing it with CSS which doesn't need a semi-colon for a single statement.<br /><br />The missing semi-colon(s) can confuse the validator. You can use Firefox/Mozilla's Javascript console to validate Javascript.<br /><br />I find that it helps a lot to line up the opening and closing brackets. IT makes the JS code a lot easier to follow.<br /><br />You don't seem to have a DocType to validate against.]]></description>
    <pubDate>05/16/05, 136 24 2005 2005:%i:1116260672 12:24:32</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1941</guid>
   </item>
     <item>
    <title>David  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1942</link>
    <description><![CDATA[<code>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br /> &nbsp;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;<br /> &nbsp;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot;&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;</code><br />This code produces the same error.]]></description>
    <pubDate>05/17/05, 137 46 2005 2005:%i:1116344807 11:46:47</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1942</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1943</link>
    <description><![CDATA[Try adding...<br />&lt;title&gt;A title&lt;/title&gt;]]></description>
    <pubDate>05/17/05, 137 04 2005 2005:%i:1116353046 14:04:06</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1943</guid>
   </item>
     <item>
    <title>Baxter  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1944</link>
    <description><![CDATA[I've foudn I need to wrap my js in cdata tags to make everything happy.]]></description>
    <pubDate>05/17/05, 137 57 2005 2005:%i:1116356231 14:57:11</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1944</guid>
   </item>
     <item>
    <title>David  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1945</link>
    <description><![CDATA[<blockquote><strong>Forum said:</strong><br />
Try adding...<br />&lt;title&gt;A title&lt;/title&gt;</blockquote><br />That did the trick! I didn't realise that titles are mandatory. Thanks for the help guys. <img src="/images/emoticons/smile.png" class="smiley" />]]></description>
    <pubDate>05/17/05, 137 59 2005 2005:%i:1116363551 16:59:11</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/why_wont_my_code_validate/#p1945</guid>
   </item>
   </channel>
</rss