astralaaron Posted March 28, 2008 Share Posted March 28, 2008 http://validator.w3.org/check?uri=http%3A%...ine&group=0i was hired to fix the errors on this website, I have fixed over 200 so far, the link is on some of my webspace right now while I edit the files... if you go there you will see my client has youtube videos embeded on his pages.. the validator is finding LOTS of errors in the syntax of the embeded youtube... what could possibly be done to validate that? the youtube videos have to stay....EDIT: Please check my post down at the bottom Link to comment Share on other sites More sharing options...
newseed Posted March 28, 2008 Share Posted March 28, 2008 Give this a read: YouTube Doesn't Validate Link to comment Share on other sites More sharing options...
newseed Posted March 28, 2008 Share Posted March 28, 2008 You will also have to understand that some certain characters will not validate and so you replace them with the equivilant character code:Here's your YouTube code which will validate. <object type="application/x-shockwave-flash" width="425" height="350" data="http://www.youtube.com/v/93ECRbKsDHk&rel=0&color1=0x006699&color2=0x54abd6"><param name="movie" value="http://www.youtube.com/v/93ECRbKsDHk&rel=0&color1=0x006699&color2=0x54abd6" /></object> Link to comment Share on other sites More sharing options...
Synook Posted March 29, 2008 Share Posted March 29, 2008 Ouch. Well, good luck, astralaaron at least they aren't super-weird errors... Link to comment Share on other sites More sharing options...
astralaaron Posted March 29, 2008 Author Share Posted March 29, 2008 Ouch. Well, good luck, astralaaron at least they aren't super-weird errors...thanks a lot Link to comment Share on other sites More sharing options...
astralaaron Posted March 29, 2008 Author Share Posted March 29, 2008 You will also have to understand that some certain characters will not validate and so you replace them with the equivilant character code:Here's your YouTube code which will validate.<object type="application/x-shockwave-flash" width="425" height="350" data="http://www.youtube.com/v/93ECRbKsDHk&rel=0&color1=0x006699&color2=0x54abd6"><param name="movie" value="http://www.youtube.com/v/93ECRbKsDHk&rel=0&color1=0x006699&color2=0x54abd6" /></object> what about the height="" tag ?? it is saying that is not a valid attribute in XHTML Link to comment Share on other sites More sharing options...
astralaaron Posted March 29, 2008 Author Share Posted March 29, 2008 the ones I cant see how to fix are the attributes...Error Line 80, Column 27: there is no attribute "src". <embed src="http://www.youtube.com/watch?v=93ECRbKsDHk&rel=0&ccan that be fixed? how can there be no SRC? Link to comment Share on other sites More sharing options...
Synook Posted March 29, 2008 Share Posted March 29, 2008 can that be fixed? how can there be no SRC?The embed element itself is not valid, you'll have to replace it with <object>, as per newseed's post.what about the height="" tag ?? it is saying that is not a valid attribute in XHTML <object type="application/x-shockwave-flash" style="width:425px; height:350px; " data="http://www.youtube.com/v/93ECRbKsDHk&rel=0&color1=0x006699&color2=0x54abd6"><param name="movie" value="http://www.youtube.com/v/93ECRbKsDHk&rel=0&color1=0x006699&color2=0x54abd6" /></object> Link to comment Share on other sites More sharing options...
astralaaron Posted March 29, 2008 Author Share Posted March 29, 2008 Please take a look at these validation errors:http://validator.w3.org/check?uri=http%3A%...ine&group=0it is haveing a problem with the <p></p> saying it is not aloud to be placed in the element it is in...theres more than 1 of them.. but I will highlight the first one's location in the code below (line 137) <!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>My Pool Partner Home</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/><meta name="description" content="My Pool Partner is a fresh and unique approach to building your own swimming pool with the help of an expert consultant who does all of the legwork, saving you up to 50% over what a traditional contractor charges. You become the contractor and we handle plans, permits, designs, and sub-contractors for you." /><meta name="keywords" content="austin,austin tx,austin texas,custom swimming pool,how to build a swimming pool,in ground swimming pool,in-ground swimming pool,inground swimming pool,my pool partner,outdoor swimming pool,pool contractors,residential swimming pools,swimming pool,swimming pool austin,swimming pool builders,swimming pool company,swimming pool construction,swimming pool contractors,swimming pool designers,swimming pool geeks,swimming pool plans,swimming pools" /><meta name="robots" content="index, follow" /><style type="text/css"><!--body { background-image: url(images/back.gif); background-repeat: repeat-x; background-color: #407EC0;}.cstage { font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: #000000; padding-right: 40px; padding-left: 40px;}.middleleft { font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: #000000;}--></style><script type="text/javascript" src="js/prototype.js"></script><script type="text/javascript" src="js/scriptaculous.js?load=effects"></script><script type="text/javascript" src="js/lightbox.js"></script><link href="css/lightbox.css" type="text/css" rel="stylesheet"/><link href="global.css" type="text/css" rel="stylesheet"/><link href="mypool.css" rel="stylesheet" type="text/css"/><style type="text/css"><!--a:link { text-decoration: none;}a:visited { text-decoration: none;}a:hover { text-decoration: underline;}a:active { text-decoration: none;}body,td,th { font-family: Verdana, Arial, Tahoma;}--></style></head><body style="margin:0px"><table width="800" style="border:0px" align="center" cellpadding="0" cellspacing="0" id="Table_01"> <tr> <td><a href="index.cfm"><img src="images/index_01.gif" alt="index one" width="800" height="25" border="0"/></a></td> </tr> <tr> <td><a href="index.html" title="link to home page"><img src="images/index_02.gif" alt="index two" style="width:800px;height:51px;border:0px"/></a></td> </tr> <tr> <td><img src="images/index_03.gif" width="294" alt="index_03" /><a href="index.cfm" title="home page"><img src="images/b_home.gif" name="home" style="width:101px;border:0px" alt="home page" /></a><a href="packages.cfm" title="packages link"><img src="images/b_packages.gif" name="pools" style="width:101px;border:0px" alt="picture link of packages" /></a><a href="contact.html" title="contact page"><img src="images/b_contact.gif" name="contact" style="width:101px;border:0px" alt="contact link image" /></a><a href="pools.html" title="pools link"><img src="images/b_pools.gif" style="width:101px;border:0px" alt="pools link image" /></a><img src="images/index_08.gif" style="width:102px" alt="index eight" /></td> </tr> <tr> <td><img src="images/index_09.gif" width="800" alt="index nine"/></td> </tr> <tr> <td height="415" valign="top" style="background-image: url(images/index_10.gif);" class="cstage"> <table style="width:719px;border:0px" cellpadding="4"> <tr> <td colspan="2" valign="top"><div align="center"></div></td> </tr> <tr> <td width="339" valign="top"><div align="center"> <object type="application/x-shockwave-flash" style="width:311px;height:256px" data="http://www.youtube.com/v/93ECRbKsDHk&rel=0&color1=0x006699&color2=0x54abd6"> <param name="movie" value="http://www.youtube.com/v/93ECRbKsDHk&rel=0&color1=0x006699&color2=0x54abd6" /></object> <br /> <span class="grey">See how we can save you thousands of dollars with our experience. We work for you.</span></div></td> <td align="center"><form action="comailer.php" onsubmit="return validate(this);" method="post" name="theform"> <p align="center" class="theW"><img src="images/11stepheader.jpg" style="width:240px;height:44px;border:0px" alt="header" /></p> <span class="subhead"><strong>1-800-609-0345</strong> </span> <table style="border:0px"width="292" border="0" cellpadding="3" cellspacing="0" class="purpleraise"> <tr class="textsmall"> <td width="52" class="labelit">First*</td> <td width="98"><label class="textsmall"> <input type="text" name="firstName" id="FirstName" size="15" /></label></td> <td colspan="2" class="smallmessage"><div align="right">*Required Input </div></td> </tr> <tr class="textsmall"> <td class="labelit">Last*</td> <td><input type="text" name="lastName" id="lastName" size="15" /></td> <td width="47">City*</td> <td width="90"><input type="text" name="city" id="city" size="15" /></td> </tr> <tr class="textsmall"> <td class="labelit">Phone* </td> <td><label><input type="text" name="phone" id="phone" size="15" /></label></td> <td>State*</td> <td><input type="text" name="state" id="state" size="15" /></td> </tr> <tr class="textsmall"> <td class="labelit">Email * </td> <td><label><input type="text" name="email" id="email" size="15" /></label></td> <td>Zip*</td> <td><input type="text" name="zip" id="zip" size="15" /></td> </tr> <tr class="textsmall"> <td colspan="4">Address <input type="text" name="address" id="address" /></td> </tr> <tr class="textsmall"> <td colspan="4"><div align="center"> <input type="image" name="submit" value="submit" src="images/submit_button.gif" align="right" style="border:0px" /> </div></td> </tr> </table> </form></td> </tr> <tr> <td colspan="2" valign="top"><hr size="1" /> <div align="center"><a href="packages.cfm" title="packages page"><img src="images/header.jpg" name="banner" style="width:650px;height:118px;border:0px" hspace="0" vspace="0" id="banner" alt="header banner" /></a></div> <hr size="1"/></td></tr><tr> <td colspan="2"><a href="portfolio/images/Exotic (1).jpg" title="mypoolpartner" rel="lightbox[roadtrip]"></a> <span class="middleleft"><a href="portfolio/images/Exotic (1).jpg" title="mypoolpartner" rel="lightbox[roadtrip]"><img src="portfolio/images/Exotic (1).jpg" style="width:229px;height:169px;border:0px" hspace="10" vspace="10" align="right" alt="exotic jpg" /></a> [b]<p><span class="view-em">WHO:</span><strong class="theW"> MyPoolPartner.com</strong> [/b] are simply Swimming Pool Construction Consultants <strong>dedicated to bringing value/savings to the homeowner</strong> before they sign a contract with a Pool Contractor. </p> <p><span class="view-em">WHAT:</span> <span class="theW"><strong> MyPoolPartner.com</strong></span> provides a valuable solution that will <strong>ultimately save homeowners millions of dollars </strong>in unnecessary construction fees forced on the home owner by the traditional Pool Contractor. </p> <p><span class="view-em">WHERE:</span> <span class="theW"><strong> MyPoolPartner.com</strong></span> is located in the Hills of Austin Texas and offers business hours of 8am pacific time to 9pm eastern time. If you live in Austin Rob will personally manage your pool project and Guarantee a <a href="contact.html" title="contact page">savings of 30% or more</a>!</p> <p><a href="portfolio/images/Exotic (6).jpg" title="mypoolpartner" rel="lightbox[roadtrip]"><img src="portfolio/images/Exotic (6).jpg" style="width:229px;height:169px;border:0px" hspace="10" vspace="10" align="left" alt="exotic six" /></a><span class="view-em">WHY: </span> <span class="theW"><strong>MyPoolPartner.com</strong></span> founder was fed up with the Traditional Pool Contractors fleecing American households and decided to take a stand. <strong> MyPoolPartner.com founder Rob Houglum Says, “Homeowners need a reliable validation source so they don’t get taken advantage of” </strong>thus <strong> MyPoolPartner.com</strong> was created. </p> <p><span class="view-em">HOW DOES IT WORK:</span> <strong> <span class="theW">MyPoolPartner.com</span> </strong> <strong> K</strong>eeps <strong>I</strong>t <strong>S</strong>imple by having a more than affordable consulting fee. <strong>Think of it as an Insurance Policy against getting taken advantage of.</strong> Simply <a href="contact.cfm">email or fax us your quotes</a> from the traditional pool contractors and we will “Go to Work for You” grinding down the real construction costs Less traditional Pool Contractor Fee’s / Profit. <br/> </p> </span> <p><span class="view-em">THE RESULT </span><span class="middleleft">: </span><strong>Save Time - Save Money</strong>. See our most recent <span class="theW">MyPoolPartner.com</span> <a href="SAVINGS.pdf" title="view savings pdf">Crushed Quotes</a>" from all over the USA. <a href="SAVINGS.pdf" title="view savings pdf link 2">These Clients</a> saved 35% or more building there Dream Pool using Rob's Pool Quote Crushing System. </p> <hr size="1" /> <div align="center"><a href="packages.cfm" title="packages link"><img src="images/nextpage.gif" style="width:205px;height:33px;border:0px" alt="next page" /></a> </div></td> </tr> <tr> <td colspan="2"> <p align="center" class="view-em"><img src="images/teamhouglumbanner.gif" style="width:390px;height:100px;border:0px" align="bottom" alt="team houglum banner"/></p></td></tr> <tr valign="baseline"> <td colspan="2" align="center" class="middleleft"><div align="center"> <p><span class="legal"> ©2008 <strong class="theW">MyPoolPartner.com</strong>.-</span> <a href="privacy.cfm" title="privacy policy" target="_blank">Privacy Policy</a> </div> </p> </div> </td> </tr> </table></td> </tr> <tr> <td> <img src="images/index_11.gif" style="width:800px;height:55px;border:0px" alt="index eleven" /></td> </tr></table><script type="text/javascript">function validate() {var theMessage = "Please complete the following: \n-----------------------------------\n";var noErrors = theMessageif (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.theform.email.value)){theMessage = theMessage + "\n --> Enter a valid e-mail address";}if (document.theform.firstName.value=="") {theMessage = theMessage + "\n --> Please enter Your first name or title";}if (document.theform.lastName.value=="") {theMessage = theMessage + "\n --> Please enter Your last name";}if (document.theform.city.value=="") {theMessage = theMessage + "\n --> Please enter your city";}if (document.theform.state.value=="") {theMessage = theMessage + "\n --> Please enter your state";}if (document.theform.zip.value=="") {theMessage = theMessage + "\n --> Please enter your zip code";}if (theMessage == noErrors) {return true;} else {alert(theMessage);return false;}}</script></body></html> A Link to comment Share on other sites More sharing options...
boen_robot Posted March 29, 2008 Share Posted March 29, 2008 Well, it seems paragraphs are not valid inside table cells. Semantically, this makes sence if you ask me.Either turn their table layout into a tableless layout (and ask for more money at that point), or replace the <p>'s with <span>'s that have "display:block;".You should fix your XML parsing errors before that though - "Line 86, Column 38" and all "Opening and ending tag mismatch" errors. Link to comment Share on other sites More sharing options...
astralaaron Posted March 29, 2008 Author Share Posted March 29, 2008 Well, it seems paragraphs are not valid inside table cells. Semantically, this makes sence if you ask me.Either turn their table layout into a tableless layout (and ask for more money at that point), or replace the <p>'s with <span>'s that have "display:block;".You should fix your XML parsing errors before that though - "Line 86, Column 38" and all "Opening and ending tag mismatch" errors.what are the XML parsing errors about? i didn't build this site, I am just making it valid.. there was over 130 errors on each page..thanks for the information about the paragraphs Link to comment Share on other sites More sharing options...
Synook Posted March 29, 2008 Share Posted March 29, 2008 If you do fix the parsing errors first, the remaining errors will be easier to figure out. Link to comment Share on other sites More sharing options...
astralaaron Posted March 29, 2008 Author Share Posted March 29, 2008 hmm the XML parsing was just a </div> that should not have been there.the file validates now - thanks i just have to do the same on a couple more files Link to comment Share on other sites More sharing options...
boen_robot Posted March 29, 2008 Share Posted March 29, 2008 what are the XML parsing errors about? i didn't build this site, I am just making it valid.. there was over 130 errors on each page..thanks for the information about the paragraphsThe first is about a missing space between attributes. That is, you have:style="border:0px"width="292" and it should be style="border:0px" width="292" The rest are about opening and closing tags mismatches. In other words, when tags are not nested properly. You need to have for example: <table><tr><td>cell 1</td><td>cell 2</td></tr></table> and you have something else, like for example: <table><tr><td>cell 1</td><td>cell 2</td></table></tr> (notice how the table is closed before the "tr"... this is the mistake here)To solve theese kinds of errors, indent your code... all of it. Place a tab for each nesting level, and place each next tag on a new line. The opening and closing tags for a certain element must have the same number of tabs before them on their respective lines. Link to comment Share on other sites More sharing options...
astralaaron Posted March 29, 2008 Author Share Posted March 29, 2008 That first page validated,I am on the last page I have to dohttp://validator.w3.org/check?uri=http%3A%...ine&group=0there is a problem with the <form> </form>it saying that the form was never opened? it is not making sense to me.. should it not be inside the TD ? Link to comment Share on other sites More sharing options...
astralaaron Posted March 29, 2008 Author Share Posted March 29, 2008 scratch that form question it is fine when not inside the td.theres still some <td> errors which seem like they are going to be a pain to find.. Link to comment Share on other sites More sharing options...
astralaaron Posted March 29, 2008 Author Share Posted March 29, 2008 AHH great! they both validate... 267 errors my god!thank everyone for the help - i learned a lot. Link to comment Share on other sites More sharing options...
jlhaslip Posted March 30, 2008 Share Posted March 30, 2008 Is this the page?http://vikingbjj.com/xmypoolpartner/index.htmlResult: 0 errors / 8 warningsline 56 column 1 - Warning: <table> lacks "summary" attributeline 71 column 3 - Warning: <table> lacks "summary" attributeline 86 column 14 - Warning: <table> lacks "summary" attributeline 135 column 20 - Warning: <a> escaping malformed URI referenceline 137 column 27 - Warning: <a> escaping malformed URI referenceline 137 column 116 - Warning: <img> escaping malformed URI referenceline 153 column 46 - Warning: <a> escaping malformed URI referenceline 153 column 135 - Warning: <img> escaping malformed URI referenceAll that work and it is still using a Table-based layout... Link to comment Share on other sites More sharing options...
astralaaron Posted April 2, 2008 Author Share Posted April 2, 2008 Is this the page?http://vikingbjj.com/xmypoolpartner/index.htmlResult: 0 errors / 8 warningsline 56 column 1 - Warning: <table> lacks "summary" attributeline 71 column 3 - Warning: <table> lacks "summary" attributeline 86 column 14 - Warning: <table> lacks "summary" attributeline 135 column 20 - Warning: <a> escaping malformed URI referenceline 137 column 27 - Warning: <a> escaping malformed URI referenceline 137 column 116 - Warning: <img> escaping malformed URI referenceline 153 column 46 - Warning: <a> escaping malformed URI referenceline 153 column 135 - Warning: <img> escaping malformed URI referenceAll that work and it is still using a Table-based layout...I didn't make the page... Link to comment Share on other sites More sharing options...
astralaaron Posted April 2, 2008 Author Share Posted April 2, 2008 I am now validating this page: http://www.mypoolpartner.com/packages.phphttp://validator.w3.org/check?uri=http%3A%...e=1&group=0which started off with over 260 errors... I am down to 6 errors and need a bit of assistance.. i'm on this line:Error Line 384, Column 4: end tag for "td" omitted, but OMITTAG NO was specified . Link to comment Share on other sites More sharing options...
astralaaron Posted April 2, 2008 Author Share Posted April 2, 2008 Found it, thanks if anyway was trying to look! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.