HTML - Validation Question / Site Won't Validate
Site in question is: http://investorsconnection.net
Here is the W3 validation for it: http://validator.w3.org/check?uri=ht...line&gro up=0 If you look at the first error, it has to do with a javascript function that is in the code. I suspect that the subsequent errors displayed in the validator are displayed due to something setting off the first error. 1. I thought the validator only validated HTML, not Javascript. 2. I've used the exact same Javascript function on other sites and they validated just fine - and I literally copy and pasted the function, so I'm a bit confused what is setting off the validator this time... Can anyone shed some light on this? Thanks! Similar Tutorialshello, if I want to validate my website, should I test *all* the pages of my website with the validator ?? thanks First, I guess, I will shed some light on my situation. At the beginning of the summer, a realtor asked me to build him a website, and being an up-and-coming web designer I jumped at the opportunity to get some much needed experience. Long story short, I have used the validator in the past, but never with a php document. Alas as the validator complains about my three mistakes (mostly related to IE fixing, I got around most of it by using a table combined with divs, I took the easy way out I know) it is also complaining about links to php pages. Code: Line 113, Column 46: reference to external entity in attribute value. …ef="index.php?option=com_content&view=category&layout=blog&id=1&Itemid=3">Cro ✉ This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&'. So that is what I am looking at... over 40 instances appear on the page! Anyways, this particular site doesn't need to be valid (I plan on reverting to my div's only layout for a portfolio piece anyways). I would just like to have an understanding of what these errors mean. Any help is much appreciated EDIT: While my mind is still deep into this subject... is this error just occuring because all that nasty php errors, or is there another reason behind it? Code: Line 51, Column 49: XML Parsing Error: Opening and ending tag mismatch: tr line 49 and td. <img src="images/banner2realty.jpg" /></div></td> Once again, any input is very much appreciated Morning guys, So yeah I'm new, this is my first ever site. After so much trial and error with Dreamweaver (so frustrating but a great way to learn) i have finished the first draft of the site and have uploaded it to the iPower server so my bosses can review. In Dreamweaver the preview in browsers show everything is fine, but live this is not the case (how many times have you heard this?!) Good thing is it's not the positioning thats the issue - it's the images - some load up, some don't, and this seams to change everytime I refresh?!?! Surely this is a case of not me but them?! He's a link so you can have a look yourselves: http://www.friendshiprose.com/cruise_tobago.html If anybody can shed some light it would be much appreciated, as I don't know too much really. Kind regards, Simon Heres the source code to my site if it interest you: (please be kind - first site n all!) HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> <link href="../tester.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <style type="text/css"> <!-- a:link { color: #099; text-decoration: none; } a:visited { text-decoration: none; color: #099; } a:hover { text-decoration: underline; color: #0CC; } a:active { text-decoration: none; color: #0CC; } --> </style></head> <body onload="MM_preloadImages('../Images/RoselinkRoll.jpg','../Images/GIVRoll.jpg','../Images/RealRoll.jpg','../Images/WeddingsRoll.jpg','../Images/SRERoll.jpg')"> <div id="ContainerMain"> <a href="http://www.friendshiprose.com" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('FR','','../Images/RoselinkRoll.jpg',1)"><img src="../Images/Roselink.jpg" alt="Friendship Rose Caribbean Schooner" name="FR" width="160" height="97" border="0" class="TopNav" /></a> <a href="http://www.grenadinevillas.com" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('GIV','','../Images/GIVRoll.jpg',1)"><img src="../Images/GIV.jpg" alt="Grenadine Island Villa Rentals" name="GIV" width="160" height="97" border="0" class="TopNav" /></a> <a href="http://www.grenadineproperty.com" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('RE','','../Images/RealRoll.jpg',1)"><img src="../Images/Real.jpg" alt="Grenadines Land & Villa Sales" name="RE" width="160" height="97" border="0" class="TopNav" /></a> <a href="http://www.grenadineweddings.com" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('WED','','../Images/WeddingsRoll.jpg',1)"><img src="../Images/Weddings.jpg" alt="Grenadines Weddings & Events" name="WED" width="160" height="97" border="0" class="TopNav" /></a> <a href="http://www.sailrelaxexplore.com" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('SRE','','../Images/SRERoll.jpg',1)"><img src="../Images/SRE.jpg" alt="Sail Relax Explore the Grenadines" name="SRE" width="160" height="97" border="0" class="TopNav" /></a> <img src="../Images/collection_large.jpg" width="160" height="30" alt="Grenadines Collection" id="Collection"/> <img src="../Images/Friendship_Rose_Header.jpg" width="880" height="175" alt="Friendship Rose Caribbean Schooner" id="Header" /> <div id="LeftNav"><img src="../Images/Day Cruises Tab1.jpg" width="160" height="143" alt="Contact Us" id="Contact" /> <p> </p> <p> <a href="http://www.friendshiprose.com/cruises.html">Cruises</a></p> <p> <a href="http://www.friendshiprose.com/experience.html">The Experience</a></p> <p> <a href="http://www.friendshiprose.com/menu.html">Menu</a></p> <p> <a href="http://www.friendshiprose.com/locations.html">Locations</a></p> <p> <a href="http://www.friendshiprose.com/construct.html">Private Cruises</a></p> <p> <a href="http://www.friendshiprose.com/weddings.html">Weddings</a></p> <p> <a href="http://www.friendshiprose.com/construct.html">Image Gallery</a></p> <p> <a href="http://ical.mac.com/WebObjects/iCal.woa/wa/default?u=thegrenadines&n=Friendship%20Rose%20Cruises.ics">View Sailing Calendar</a></p> <p> <a href="http://www.friendshiprose.com/contact.html">Contact Us</a></p> </div> <div id="maincontentCaysCruise"> <h1 class="H1Text"><b>THE TOBAGO CAYS - FRIENDSHIP ROSE CRUISE</b></h1> <p class="LineSpace"> </p> <P class="StandTextGap">The <a href="http://www.friendshiprose.com/tobago_cruise.html">Tobago Cays Marine Park</a> is an stunning group of uninhabited islands near the southern end of the Grenadines. With fine coral reefs, turquoise waters and golden sand, many people consider the Tobago Cays to be the “Jewel in the crown” of the Grenadines. For more information on the amazing Tobago Cays <a href="http://www.friendshiprose.com/tobago_cays.html">click here . . . </a></P> <p class="LineSpace"> </p> <h2 class="H2Text"><font size="3"><b>Cruise Itinerary</b></font> </h2> <p class="LineSpace"> </p> <p class="StandTextGap"><b>7:00am</b><br />Join the Schooner, welcomed onboard by Captain and Crew<br /> Coffee & breakfast served as you sail by Moonhole and the Western Isles Of Bequia<br /> Enjoy the voyage through the Grenadines with excellent on board service</p> <p class="LineSpace"> </p> <p class="StandTextGap"><b>10:00am</b><br /> Arrive in the Tobago Cays<br /> Snorkel the coral reef <br /> Explore a deserted island<br /> Swim with turtles just off the pristine coral sand beach</p> <p class="LineSpace"> </p> <p class="StandTextGap"><b>1:00pm</b><br /> Lunch served on the shaded deck<br /> Relax in a hammock under billowing sails <br /> Have a relaxing afternoon swim from the boat</p> <p class="LineSpace"> </p> <p class="StandTextGap"><b>2:30pm</b><br /> Set sail for Bequia<br /> Watch for dolphins and turtles from the bow sprit <br /> Take afternoon tea and cake or enjoy the sundowners</p> <p class="LineSpace"> </p> <p class="StandTextGap"><b>5:30pm</b><br /> Arrive in Bequia</p> </div> <div id="SocialButtons"> <a href="http://www.facebook.com/home.php?ref=home#/group.php?gid=183257088849&ref=ts"><img src="../Images/join-our-facebook-group.jpg" width="160" height="46" style="border:0" alt="Facebook Group"/></a> <img src="../Images/twitter_logo.jpg" width="160" height="46" alt="Twitter Follow" id="Twit" /> </div> <img src="../Images/Footer 1.jpg" width="160" height="97" alt="Friendship Rose" class="FooterImgs"/> <img src="../Images/Footer 2.jpg" width="160" height="97" alt="Friendship Rose" class="FooterImgs"/> <img src="../Images/Footer 3.jpg" width="160" height="97" alt="Friendship Rose" class="FooterImgs"/> <img src="../Images/Footer 4.jpg" width="160" height="97" alt="Friendship Rose" class="FooterImgs"/> <div id="ContainerBot" align="left"> <h1 class="H1Text">The Friendship Rose Caribbean Schooner </h1> <h2 class="H2TextGap">Day Tours & Private Charters Through the Grenadines</h2> <h3 class="StandText">Bequia, St. Vincent & the Grenadines, West Indies</h3> <p class="StandText">E-mail:<a href="mailto:friendshiprose@mac.com">friendshiprose@mac.com </a> </p> <p class="StandText">Tel BEQUIA: +1 (784) 495 0886/9 +1 (784) 457 3888 +1 (784) 457 3739 UK FREEPHONE 0800 0484814</p> </div> </div> </body> </html> Ive just got my new site up and running but i need to have it all in center of the screen. can someone please tell me how to do this in the easyist way..? The site can be seen he http://rtgkom.dk/~caspers06/index.html Thanks in advance Edited: Seo Concerns. Hey everyone, I'm trying to add more pages to my site.... For example, www.mysite.com/new-page How do I add that "new-page" to my site? My website was professionally built, however I go in & edit all the time. I have been trying to look at the server to see what the developer did, but no luck... Thanks in advanced for any help Okay I did warn you all in the intro lounge. I want to add free games from here http://freegames.org.uk/html/connect4.html to the schools site and I can't get it to work. I am using *whispers* Front Page, okay I know I should eb using something else but for the mo, tis all i have got. Please please someone tell me what to do and how to do it.......in simple english please, pretending you are talking to a blonde. ( no offence to blondes and by the way I am not one.) Help. I am wondering if it is possible to create an INDEX.HTML to redirect to another website? I would like it to display the redirected site, but if possible keep to the original address.. e.g. A site named www.mysite.com, with an INDEX.HTML to redirect to www.othersite.com, which displays OTHERSITE with www.mysite.com in the address bar. Hope I explained ok, any responce would be much appricated! Thanks! http://www.yp-forums.com/yankeepridesite/index.php http://validator.w3.org/check?uri=ht...eepridesite%2F Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>[Y]ankee[P]ride</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="css.css" rel="stylesheet" type="text/css" /> </head> <body bgcolor="#CCCCCC" link="#000000" alink="#000000" vlink="#000000"> <map id="yankeepride_24" name="yankeepride_24"> <area shape="rect" alt="Tos" coords="717,11,743,20" href="tos.php" target="content" title="Tos" /> <area shape="rect" alt="Privacy Policy" coords="763,12,854,20" href="privacy.php" target="content" title="Privacy Policy" /> <area shape="rect" alt="Top" coords="3,10,45,19" href="#top" title="Top" /> <area shape="default" nohref="nohref" alt="" /> </map> <table id="body" align="center" width="900" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="900" height="10" colspan="9"> <img id="yankeepride_01" src="images/yankeepride_01.gif" width="900" height="10" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="22" height="648" rowspan="14"> <img id="yankeepride_02" src="images/yankeepride_02.gif" width="22" height="648" alt="This image cannot be displayed do to errors" /></td> <td width="858" height="30" colspan="7"> <img id="yankeepride_03" src="images/yankeepride_03.gif" width="858" height="30" alt="This image cannot be displayed do to errors" /></td> <td width="20" height="648" rowspan="14"> <img id="yankeepride_04" src="images/yankeepride_04.gif" width="20" height="648" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="858" height="162" colspan="7"> <img id="yankeepride_05" src="images/yankeepride_05.gif" width="858" height="162" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="858" height="8" colspan="7"> <img id="yankeepride_06" src="images/yankeepride_06.gif" width="858" height="8" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="169" height="31" colspan="3"> <img id="yankeepride_07" src="images/yankeepride_07.gif" width="169" height="31" alt="This image cannot be displayed do to errors" /></td> <td width="8" height="31"> <img id="yankeepride_08" src="images/yankeepride_08.gif" width="8" height="31" alt="This image cannot be displayed do to errors" /></td> <td width="681" height="31" colspan="3"> <img id="yankeepride_09" src="images/yankeepride_09.gif" width="681" height="31" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="1" height="96" rowspan="2"> <img id="yankeepride_10" src="images/yankeepride_10.gif" width="1" height="96" alt="This image cannot be displayed do to errors" /></td> <td width="167" height="95" bgcolor="#FFFFFF" valign="top" style="font-family:Arial, Helvetica, sans-serif; font-size:x-small;"> <a href="content.php" target="content">>> Home</a><br /><a href="http://www.yp-forums.com/index.php?">>> Message Boards</a><br /><a href="rss.php" target="content">>> RSS News Feeds</a><br /><a href="affiliates.php" target="content">>> Affiliates</a><br /><a href="tos.php" target="content">>> Terms of Service</a><br /><a href="privacy.php" target="content">>> Privacy Report</a><br /><a href="contact.php" target="content">>> Contact Us</a></td> <td width="10" height="356" colspan="3" rowspan="7"> <img id="yankeepride_12" src="images/yankeepride_12.gif" width="10" height="356" alt="This image cannot be displayed do to errors" /></td> <td width="679" bgcolor="#FFFFFF" height="355" rowspan="6"> <iframe name="content" width="679" height="355" frameborder="0" src="content.php"></iframe></td> <td width="1" height="356" rowspan="7"> <img id="yankeepride_14" src="images/yankeepride_14.gif" width="1" height="356" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="167" height="1"> <img id="yankeepride_15" src="images/yankeepride_15.gif" width="167" height="1" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="168" height="30" colspan="2"> <img id="yankeepride_16" src="images/yankeepride_16.gif" width="168" height="30" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="1" height="230" rowspan="4"> <img id="yankeepride_17" src="images/yankeepride_17.gif" width="1" height="230" alt="This image cannot be displayed do to errors" /></td> <td width="167" height="106" bgcolor="#FFFFFF" valign="top"><script type="text/javascript"> <!-- function buddy_pop() { window.open('http://www.yp-forums.com/?act=buddy','MyAssistant','width=200,height=450,resizable=yes,scrollbars=yes'); } //--> </script> <div valign="top" align="center"> <font face="Arial" size="1"> <center><b>Your Forum Information</b></center> Welcome <a href="http://www.yp-forums.com/index.php?showuser=111">Lrusso</a> <br> <a href="http://www.yp-forums.com/">Go to the Boards</a><br> <a href="http://www.yp-forums.com/index.php?act=Msg&CODE=01">0 New Message(s)</a> <br> <a href="http://www.yp-forums.com/index.php?act=UserCP&CODE=00">My Controls</a><br> <a href="javascript:buddy_pop();">My Assistant</a> </font> </div> </td> </tr> <tr> <td width="167" height="31"> <img id="yankeepride_19" src="images/yankeepride_19.gif" width="167" height="31" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="167" height="92" bgcolor="#FFFFFF"><iframe name="quote" width="167" height="92" frameborder="0" src="quote.html"></iframe> </td> </tr> <tr> <td width="167" height="1"> <img id="yankeepride_21" src="images/yankeepride_21.gif" width="167" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="679" height="1"> <img id="yankeepride_22" src="images/yankeepride_22.gif" width="679" height="1" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="858" height="11" colspan="7"> <img id="yankeepride_23" src="images/yankeepride_23.gif" width="858" height="11" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="858" height="30" colspan="7"> <img src="images/yankeepride_24.gif" usemap="#yankeepride_24" width="858" height="30" alt="This image cannot be displayed do to errors" border="0" /></td> </tr> <tr> <td width="858" height="20" colspan="7"> <img id="yankeepride_25" src="images/yankeepride_25.gif" width="858" height="20" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="22" height="1"> <img src="images/spacer.gif" width="22" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="1" height="1"> <img src="images/spacer.gif" width="1" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="167" height="1"> <img src="images/spacer.gif" width="167" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="1" height="1"> <img src="images/spacer.gif" width="1" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="8" height="1"> <img src="images/spacer.gif" width="8" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="1" height="1"> <img src="images/spacer.gif" width="1" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="679" height="1"> <img src="images/spacer.gif" width="679" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="1" height="1"> <img src="images/spacer.gif" width="1" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="20" height="1"> <img src="images/spacer.gif" width="20" height="1" alt="This image cannot be displayed do to errors" /></td> </tr> </table> <table id="tech" align="center" width="900" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="vanity" align="center"> <a id="v_php" href="http://www.php.net/" target="_blank"></a> <a id="v_mysql" href="http://www.mysql.com/" target="_blank"></a> <a id="v_xhtml" href="http://validator.w3.org/check/referer" target="_blank"></a> <a id="v_css" href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"></a> </div> </td> </tr> </table> </body> </html> How can I get that to validate? Been working on errors today...this line has like 16 errors within..every time I change one thing I get more errors than I started with! Someone have the time to take a look? Many thanks for all the help, Doug <tr align=center> <th>Base Reflectivity<br><a href="/wx16.html"><img src="/resize-radar-image.php"></img></a></th> <th>Echo Tops<br><a href="/wx17.html"><img src="/resize-et-image.php"></img></a></th> </tr> Web site:http://www.ardmoreweatherlive.com/wx3.php Dreamweaver created the following and it doesn't pass validation Code: <embed src="ozpower.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="687" height="335"></embed> Any suggestions? Thanks So I'm new here, looks like a great resource. I've been doing HTML since 1996 or so. I'm no expert and have not kept up with everything to say the least. I just designed a new website. Basically only has a index.html file. I've realized I need to make this site by the book so everything is kosher. Tried validating it and the warnings, errors I got looked totally alien to me. I have a headache from trying to figure it out. Hell the file is only 83 lines long and it's beating me up! Can someone help me? PS. I'm using CoffeeCup's HTML Editor. Thanks, Dave www.PhotographersNature.com I am trying to validate my site but I'm stuck on one error. The error is on my index page and every other page. The error read "Line 17 column 7:end tag for element "STYLE" which is not open'. If someone cane guide me to a solution or guide me to a good site that really explain my error(s). It would be a relief. I used W3C HTML validator MyCountryGear.com <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <head> <title>Home Page</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" > <meta name="description" content="Eritrean t-shirst hats and much much more.." > <meta name="keywords" content="Hats, T-shirts, Tank tops, eritrea, eritrean, eritrea news, asmara, asmera, eritrea history, eritrean history, eritrea news, eritrean hats, eritrean t-shirts, eritrean tank tops, eritrean community, eritrean girls, eritrean women, asmarino, asmarino.com, mycountrygear.com, my country gear, habesha, eritrea in DC, ertitreans in DC, eritrean soccer tournament, eritrean festival " > <meta name="author" content=" MyCountryGear.com" > <link rel="stylesheet" type="text/css" href="css/styles2column.css" media="screen"> </style> </head> <body> <div id="mainwrap"> <div id="header"> <h1 >MyCountryGear.com</h1> </div> <div id="contentarea" class="clearfix"> <div id="contentarea2" class="clearfix"> <div id="left"> <ul id="navigation"> <li> <a href="http://www.mycountrygear.com">Home Page</a> </li> <li><a href="html/hats.html">Hats</a></li> <li><a href="html/T_shirts.html">Shirts</a></li> <li><a href="html/Tank_Tops.html">Tank Tops</a></li> <li><a href="html/Arts.html"> Game Room </a></li> <li><a href="html/Contact.html"> Contact Us</a></li> </ul> </div> <!-- <div id="right"> </div> --> <div id="centerdiv" style="background-color:#ffffff;"> <h4 align=center>Welcome To MyCountryGear.com</h4> <hr align="center" width="50%"> <br> <br> <p> If you have been searching for Eritrean hats, T-shirts, and art work you have come to the right place! We have many shirts with the Eitrean Colors and flags. All of our prouducts are of the highest quality. Our T-shirts are made with 100% cotton Hanes' ®. The shirts are made to be durable and long lasting. Our Hats are baseball styled caps that will last you for a long time to come. </p><br> <br> <br> <h4 align=center> Where is Eritrea?</h4> <hr align="center" width="50%"> <br> <br> <p> Well Eritrea is a small country of northeast Africa bordering the Red Sea. The two main religions are..</p><br> <br> <ul> <li> Christianity</li> <li> Islam</li> </ul> <br> <br> <p>There are also 3 Languages..<br> <ul> <li>Tigrina (the main language)</li> <li>Arabic</li> <li>Amharic (Amharic is native to Ethiopia) </li> </ul> </p> <br> <br> <br> <h4 align="center"> Other Sites About Eritrea</h4> <hr align="center" width="50%"> <ul> <li><a href="http://www.asmarino.com">Online community for Eritreans </a></li> <li><a href="http://www.dehai.org">Current events and News</a></li> <li><a href="http://www.eritreadaily.net">Eritrea News </a></li> <br> <br> <br><br><br><br><br><br><br><br><br><br> <br> <br> <br> <br> <br> <br> <br> <br> <br> </div> </div> <DIV id="footer"> <P align="center"> Email Us Anytime Right Here <A href="mailto:Mike@MyCountryGear.com">Mike@MyCountryGear.com</A></P> <BR /> <P align="center">Thanks for visiting, next time bring some family and friends<BR /> </P> <br/> <ul > <li> <a href="site_map.html">Site Map</a> </li> </ul> </DIV> </DIV> <!--end mainwrap--></DIV> </BODY> </HTML> Thanks HighRoller Hi. Can anybody tell me why this isnt validating? Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv = "content-type" content = "text/html; charset = UTF-8" /> <title>.:Welcome to Wollongong Motorcycle Club:.</title> <style type = "text/css" media = "all"> @import"css/global.css"; </style> </head> <body> <div class = "content"> <div class = "banner"> </div> <div class = "body"> <div class = "navBarStandard"> <a href = "index.html">Home</a> <span style = "vertical-align:-8px;">|</span> <b>Calendar</b> <span style = "vertical-align:-8px;">|</span> <a href = "news.html">News</a> <span style = "vertical-align:-8px;">|</span> <a href = "forms.html">Forms</a> <span style = "vertical-align:-8px;">|</span> <a href = "photos.html">Photos</a> <span style = "vertical-align:-8px;">|</span> <a href = "directions.html">Directions</a> <span style = "vertical-align:-8px;">|</span> <a href = "#">For Sale</a> <span style = "vertical-align:-8px;">|</span> <a href = "links.html">Links</a> <span style = "vertical-align:-8px;">|</span> <a href = "#">Coaching</a> <span style = "vertical-align:-8px;">|</span> <a href = "#">Pointscore</a> <span style = "vertical-align:-8px;">|</span> <a href = "#">Interclub</a> </div> <!-- All Content goes after this line --> <br /> <div class = "calendarContent"> <div class = "datesTopCorner"></div> <!-- All Calendar entries are put after this line --> <div class = "entry1">Sun 15/04/07 - Round 2 ClubChamps Mt Kembla - <b>TRACK CLOSED</b></div> <div class = "entry2">Sun 22/04/07 - <i>MX Pointscore round 2</i></div> <div class = "entry1">Sun 29/04/07 - Coaching JT assessment - book on club No.</div> <div class = "entry2">Sun 06/05/07 - Practice day, round 3 ClubChamps Kiama</div> <div class = "entry1">Sun 13/05/07 - Mothers Day</div> <div class = "entry2">Sun 20/05/07 - <i>MX Pointscore round 3</i></div> <div class = "entry1">Sun 27/05/07 - Practice Day</div> <div class = "entry2">Sun 03/06/07 - Working bee</div> <div class = "entry1">Sun 10/06/07 - <i>MX Pointscore round 4</i></div> <div class = "entry2">Mon 11/06/07 - Long weekend / practice day</div> <div class = "entry1">Sun 17/06/07 - Track Hire Heaven Vintage - <b>TRACK CLOSED</b></div> <div class = "entry2">Sun 01/07/07 - Round 3 ClubChamps Mt Kembla - <b>TRACK CLOSED</b></div> <div class = "entry1">Sun 08/07/07 - <i>MX Pointscore round 5</i></div> <div class = "entry2">Sun 15/07/07 - Practice day</div> <div class = "entry1">Sun 29/07/07 - Practice day</div> <div class = "entry2">Sun 05/08/07 - <i>MX Pointscore round 6</i>, round 5 ClubChamps Kiama</div> <div class = "entry1">Sun 12/08/07 - Practice day</div> <div class = "entry2">Sun 26/08/07 - Practice day</div> <div class = "entry1">Sun 02/09/07 - Fathers Day</div> <div class = "entry2">Sun 09/09/07 - <i>MX Pointscore round 7</i></div> <div class = "entry1">Sun 16/09/07 - Trials Presentation Day Mt Kembla - <b>TRACK CLOSED</b></div> <div class = "entry2">Sun 23/09/07 - Practice day</div> <div class = "entry1">Mon 01/10/07 - Long weekend / practice day</div> <div class = "entry2">Sun 07/10/07 - <i>MX Pointscore round 8</i></div> <div class = "entry1">Sun 14/10/07 - Aust GP Philip Island</div> <div class = "entry2">Sun 21/10/07 - Practice day</div> <div class = "entry1">Sun 04/11/07 - Rain day for MX</div> <div class = "entry2">Sun 11/11/07 - Practice day</div> <div class = "entry1">Sun 18/11/07 - Xmas party / Presentation day</div> <div class = "entry2">Sun 02/12/07 - Practice day</div> <div class = "entry1">Sun 16/12/07 - Practice day</div> <!-- No more calendar entries can be put after this line --> <div class = "datesBottomCorner"></div> </div> <br /> </div> <div class = "bottomCorners"> <div class = "BottomCornerBox"> <span> <br /><br /> © Wollongong Motorcycle Club Ltd<br /> Ph: (02) 42 671 931<br /> P.O. Box 401, Figtree NSW 2525 </span> </div> </div> </body> </html> As you can see, im using XHTML 1.0 transitional, but aparrantly it isnt valid The following is the validation error I got from w3: ------------------------------------------------------------------------------------------- Error Line 107 column 6: end tag for "div" omitted, but OMITTAG NO was specified. </body>You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". Info Line 14 column 0: start tag was here. <div class = "content"> ------------------------------------------------------------------------------------------- It sounds like i've done something really stupid and simple, like misplacing a div tag or something Thanks for reading this (and hopefully helping me). If you want me to post my CSS or attach a copy of my website, just say so Thanks again, Chris Hello Please help with explaining this problem: and possibly how to solve it thanks. No Character Encoding Found! Falling back to UTF-8. I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to reliably validate the document. I'm falling back to the "UTF-8" encoding and will attempt to perform the validation, but this is likely to fail for all non-trivial documents. Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document. Sorry! This document can not be checked. Sorry, I am unable to validate this document because on line 306 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication. hi guys again. ive tried everything to validate this box but i cant for the life of me work out how?! i just want it to pop up an alert if the user hasnt entered their name in my_form.visitor_name. i think its somethin to do with the way ive used it in my javascript but here it is, and here's the full site if it helps, thanks www.samsharples.com Code: window.onload = init; function init() { var el = document.getElementById("welcome_message"); var username=getCookie('username'); document.getElementById("my_form").onsubmit = parse_form; el.innerHTML = "<p class=\"welcome\">Welcome to the football quiz " + username + "</p>"; } function parse_form() { var visitor_name = document.getElementById("visitor_name").value; var el = document.getElementById("welcome_message"); if (visitor_name || (username!=null && username!="")) { el.innerHTML = "<p class=\"welcome\">Welcome to the football quiz " + visitor_name + "</p>"; setCookie('username',visitor_name,365); } return false; } function getCookie(c_name) { if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } function setCookie(c_name,value,expiredays) { var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); } // -------------------end name---------------------- // function quiz_message() { document.getElementById("results").innerHTML = "Complete the quiz and your scores will appear here!...."; } // var ans = new Array; var done = new Array; var yourAns = new Array; var explainAnswer = new Array; var score = 0; ans[1] = "b"; ans[2] = "b"; ans[3] = "a"; ans[4] = "c"; ans[5] = "b"; explainAnswer[1]="Roar is Blackburn's mascot<br/><br/>"; explainAnswer[2]="John Coleman is Accrington's manager<br/><br/>"; explainAnswer[3]="The picture was infact David Beckham<br/><br/>"; explainAnswer[4]="The golden oldie Ryan Giggs was PFA Player of the year<br/><br/>"; explainAnswer[5]="The top scorer was Thiery Henry<br/>"; function Engine(question, answer) { yourAns[question]=answer; } function Score(){ var answerText = "How did you do?<br/>\n------------------------------------------------------------------------\n<br/>"; for(i=1;i<=5;i++){ answerText=answerText+"\nQuestion :"+i+"\n"; if(ans[i]!=yourAns[i]){ answerText=answerText+"\n<img src=\"images/wrong.jpg\" />The correct answer was " +ans[i] + "\n"+explainAnswer[i]+"\n"; } else{ answerText=answerText+" \n<img src=\"images/right.jpg\" />Correct!<br/> \n"; score++; } } answerText=answerText+"\nYour total score is : <a class=\"score\">"+score+"</a>\n"; var username=getCookie('username'); //now score the user if(score<=0){ answerText=answerText+"You need to learn some more " +username+ "."; } if(score>=1 && score <=1){ answerText=answerText+"My grandma could do better than that " +username+ "!"; } if(score>=2 && score <=2){ answerText=answerText+"Bit more practice needed " +username+ "."; } if(score>=3 && score <=3){ answerText=answerText+"Neither bad or birlliant. Good effort " +username+ "."; } if(score>=4 && score <=4){ answerText=answerText+"4/5 aint bad " +username+ "!"; } if(score>4){ answerText=answerText+"You are a footballing expert " +username+ "!!"; } document.getElementById("results").innerHTML = answerText; } function Score_female(){ var answerText = "<h5>How did you do?<br/>\n------------------------------------------------------------------------\n<br/>"; for(i=1;i<=5;i++){ answerText=answerText+"\nQuestion :"+i+"\n"; if(ans[i]!=yourAns[i]){ answerText=answerText+"\n<img src=\"images/wrong.jpg\" />The correct answer was " +ans[i] + "\n"+explainAnswer[i]+"\n"; } else{ answerText=answerText+" \n<img src=\"images/right.jpg\" />Correct!<br/> \n"; score++; } } answerText=answerText+"\nYour total score is : <a class=\"score\">"+score+"</a>\n"; var username=getCookie('username'); //now score the user if(score<=0){ answerText=answerText+"You need to learn some more " +username+ ".</h5>"; } if(score>=1 && score <=1){ answerText=answerText+"My grandma could do better than that " +username+ "!</h5>"; } if(score>=2 && score <=2){ answerText=answerText+"Bit more practice needed " +username+ "."; } if(score>=3 && score <=3){ answerText=answerText+"Neither bad or birlliant. Good effort " +username+ ".</h5>"; } if(score>=4 && score <=4){ answerText=answerText+"4/5 aint bad " +username+ "!</h5>"; } if(score>4){ answerText=answerText+"You are a footballing expert " +username+ "!!</h5>"; } document.getElementById("results").innerHTML = answerText; } function changeDivImageFemale() { var imgPath = new String(); imgPath = document.getElementById("quiz_box").style.backgroundImage; if(imgPath == "url(images/boy.jpg)" || imgPath == "") { document.getElementById("quiz_box").style.backgroundImage = "url(images/girl.jpg)"; } } function changeDivImageMale() { var imgPath = new String(); imgPath = document.getElementById("quiz_box").style.backgroundImage; if(imgPath == "url(images/girl.jpg)" || imgPath == "") { document.getElementById("quiz_box").style.backgroundImage = "url(images/boy.jpg)"; } } function changeDivImage(url) { document.getElementById("third_col").style.backgroundImage = "url('images/" + url + "')"; } //radio button links function go(loc) { window.location.href = loc; } ///// function quiz_alert() { alert ("Thank you. You're questions will be change accordingly."); } HTML Code: <SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="javascript/javascript.js"></script> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <div id="full_page_wrap"> <div id="main_wrap"> <div id="header"> </div> <div id="first_col"> <ul id="menu"> <li><a href="index.htm">Home</a></li> <li><a href="quiz.htm">Take the quiz</a></li> <li><a href="links.htm">Links</a></li> </ul> </div> <div id="second_col"> <h1><div id="welcome_message"></div></h1> <hr/> <form id="my_form" action="#" name="my_form" "> <p>Please enter your name:</p> <input type="text" name="visitor_name" id="visitor_name" /> <input type="submit" value="Submit" onsubmit="return" /> </form> <p>Your favourite football team: <form action=""> <select onchange="changeDivImage(this.value)"> <option>Choose your favourite team</option> <option value="arsenal.png">Arsenal</option> <option value="aston_villa.png">Aston Villa</option> <option value="birmingham_city.png">Birmingham City</option> <option value="blackburn_rovers.png">Blackburn Rovers</option> <option value="bolton_wanderers.png">Bolton Wanderers</option> <option value="burnley.png">Burnley</option> <option value="chelsea.png">Chelsea</option> <option value="everton.png">Everton</option> <option value="fulham.png">Fulham</option> <option value="hull.png">Hull City</option> <option value="liverpool.png">Liverpool</option> <option value="manchester_city.png">Manchester City</option> <option value="manchester_united.png">Manchester United</option> <option value="portsmouth.png">Portsmouth</option> <option value="stoke_city.png">Stoke City</option> <option value="sunderland.png">Sunderland</option> <option value="tottenham_hotspur.png">Tottenham Hotspur</option> <option value="west_ham.png">West Ham</option> <option value="wigan_athletic.png">Wigan Athletic</option> <option value="wolverhampton_wanderers.png">Wolverhampton Wanderers</option> </select> </form> <p>Please chhose your gender: </p> <input type="radio" name="gender" value="Male"/> Male <input type="radio" name="gender" value="Female" onClick="go('female.htm'); quiz_alert()"> Female <center> </div> <div id="third_col"> <div id="results"></div> </div> </div> </div> </body> </html> <![if gt IE 6]></a><![endif]> will not validate. How can i modify this so it will? hey, My page does not validate because of a flash object. The weird thing is that the code is automatically generated by dreamweaver. Feel free to copy and paste the code into a validator to see what the errors are. Any ideas on how to change this so that it validates? HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta name="description" content="Employee Benefit Consulting is a company which"> <meta name="keywords" content="EBC, E benefits consulting, EB consulting, employee benefits consulting, employee benefits, Employee, Benefit, Consulting, Health Insurance, Personal Insurance, Group Insurance, Insurance, Workplace Saving Plan, Kiwisaver, worker benefits, staff benefits"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>EBC Home Page</title> <link href="CSS/style.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="../JS/ADxMenu.js"></script> <link href="images/icon.ico" rel="shortcut icon"> </head> <body> <div id="container"> <div id="header"></div> <div id="menu"> <div class="linkMenu" align="center"> <ul class="adxm menu"> <li><a href="#">Home</a></li> <li><a href="about_us.html">About Us</a></li> <li><a href="insurance.html">Insurance</a> <ul> <li><a href="group_insurance.html">Group Insurance</a></li> <li><a href="personal_insurance.html">Personal Insurance</a></li> </ul> </li> <li><a href="kiwisaver.html">Kiwisaver</a></li> <li><a href="workplace_saving_plans.html">Workplace Saving Plans</a></li> <li><a href="contact_us.html">Contact Us</a></li> </ul> </div> <br> <br> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="260" height="160"> <param name="movie" value="images/quotes.swf"> <param name="quality" value="high"> <embed src="images/quotes.swf" width="260" height="160" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </object> </div> <div id="body"> <p>Welcome to Employee Benefits Consulting. We have an impressive record in the employee benefits industry in New Zealand, working alongside employers, employees and regulatory bodies.</p> <div align="center"> <img src="images/indexImage.png" alt="Employee Benefits"> </div> <p>Our focus when working with employers is to ensure that the benefits they offer their staff are sustainable, workable and effective in attracting and retaining quality employees. Our focus when working with employees is to help them set in place appropriate provision for themselves and their families, both in retirement and in the event of an unexpected trauma during their working life.</p> <p>Click <a href="contact_us.html" target="_self">here</a> to contact us for more information</p> </div> <div class="style1" id="footer"> <div align="right"> Studio 1, 237 Beach Road, Campbells Bay | 09 410 2217 | <a href="mailto:info@ebconsulting.co.nz">info@ebconsulting.co.nz </a> </div> </div> </div> </body> </html> Thanks, Raggy Hey guys basically am trying to validate my page but am facing some problems, specifically warnings saying : *********<br/> The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML. What's wrong with that? |