HTML - Validation Problems Php/html Code
Similar TutorialsHi I'm new to this site and I'm having trouble trying to validate my page, I keep getting multiple errors and I'm out of ideas...can somebody help please. Thanks I keep getting these sort of errors: Line 37, Column 9: end tag for element "br" which is not open <tr></br> Line 27, Column 5: XML Parsing Error: Opening and ending tag mismatch: body line 16 and br </br> Line 37, Column 9: XML Parsing Error: Opening and ending tag mismatch: tr line 37 and br <tr></br> Line 54, Column 18: XML Parsing Error: Opening and ending tag mismatch: div line 38 and td </div> </td></tr> HTML Code: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Megan Fox</title> <meta name="Author" content="Jean Paras" /> <meta name="Keywords" content="Megan Fox, Jennifer's Body, Article" /> <meta name="Description" content="A website for my courswork which is based on a Megan Fox article" /> <link href="mainstyle.css" rel="stylesheet" type="text/css"/> <style type="text/css"> </style> </head> <body> <table border= "15" width = "800" > <tr><td><div class="navigation"> <a href="index.html">MAIN</a> | <a href="meganfox.html">MEGAN FOX</a> | <a href="morefox.html">MORE ON FOX</a> | <a href="gallery.html">GALLERY</a> | <a href="links.html">USEFUL LINKS</a> | </div> </td></tr> </table></br> <table border= "15" width = "800" ><tr> <td><h1>MEGAN FOX</h1></td> </tr><tr> <td><a href="meganfox.html"><img src="megan-fox.jpg" alt="Go To Article" /></a> </td></tr> </table> <table border= "15" width = "800" > <tr></br> <td><div class="navigation"> <a href="index.html">MAIN</a> | <a href="meganfox.html">MEGAN FOX</a> | <a href="morefox.html">MORE ON FOX</a> | <a href="gallery.html">GALLERY</a> | <a href="links.html">USEFUL LINKS</a> | <div id="footer"> <p id="footer-copyright"> ©2009. All Rights Reserved. <br id="footer-neado"/> Article/Images Provided By: <a href="http://www.totalfilm.com/">Total Film Magazine</a><br /> <a href="http://jigsaw.w3.org/css-validator/check/referer"> <img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /></a></p> </div></td></tr> </table> </body> </html> I was looking for the correct place to put this thread, and there is not a Vbulletin area that I can find. Hopefully someone will let me know a better place to place this information because I have a couple of other problems as well. BB Code, is a way to replace HTML for security reasons. In the BB code you use in replacement of certain variables in the code a parameter input that looks like this: {param} So here is my problem and I hope someone with knowledge of vB will understand. Code: <style="text-alaign:right:"><a href="http://www.place4musicians.com/Music/free_music/{param1}/{param2}" target="_blank"><img src="http://www.place4musicians.com/music/images/custom_images/free_download.png"></a> 1) the align right does not work! 2) I've tripple checked the location and the spelling but I can't get the download link to work! The image works fine, but there is something that is keeping the code from allowing a download of the RAR image. Any help in this would be appreciated. Link to page on forum username: test password: test1234 You will also see a second issue on the link, but I don't want to ask about that just yet. Many thanks if help may be provided here! Code: <table border="0" cellpadding="0" cellspacing="0" id="NavigationBar1"> <tr> <td align="left" valign="top" width="117" height="31"><a href="www.conflict-gamers.net/forums"><img id="bv01002" src="bv01002.gif" alt="" align="top" border="0" width="117" height="31" onmouseover="SwapImage(1,0,'bv01002','bv01002_over.gif')" onmouseout="SwapImage(0,0,'bv01002','bv01002.gif')"></a></td> </tr> </table> and this is the image i want in there. http://img84.imageshack.us/img84/406...onforumfl2.jpg Can anyone help please. hi, i went to validate my page, and it failed. the problem is i cant figure out how to fix the problems. the page is located he http://shanedizzle.com/capecollection/contactus.php here is the validation errors: http://validator.w3.org/check?uri=ht...Fcontactus.php I've reduced the errors down to two but I'm stuck on fixing these final connected errors relating to the form apparently not being open, but it is! Could someone please see below and tell me what they think? http://validator.w3.org/check?uri=ht...alidator%2F1.2 Thank you. Hi. My entire site is 100% XHTML1.1. Except for some new code I added which causes errors in validation. the code is HTML Code: <a href="http://babelfish.altavista.com/babelfish/" onclick="window.open('http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_it&url='+encodeURIComponent(location.href));return false;" title="Translate to Italian"><img title="Italian" src="http://geekimo.com/licons/it.png" alt="Italian" /></a> I understand maybe CDATA islands can help with this? or making it external? but I have no idea how to do that with it having html code in there too.. I don't know if you can surround it in CDATA tags. There are other lines of code too, exactly the same except have different languages. Any help would be awesome! Hello, I have produced a form which can be seen at this url: http://www.magicalwonders.com/Freestufftest5.html but the code is failing to valididate and is producing two errors: Quote: Line 33, Column 29: "INPUT" is not a member of a group specified for any attribute. <select name="country" input type='text' size='1'> Line 33, Column 34: there is no attribute "TYPE". <select name="country" input type='text' size='1'> As I need to include "Input" and "Type" in order for the form to work I'm not sure how to produce a form that validates! Can anyone point me in the right direction? Many thanks, Myles Hi, Why isn't the following code calling the validateForm function? I am new to this so I am lost. And please excuse the messyness of the code as it is a work in progress. N.B. I have obviously taken out a lot of code but I think this is all I need to show you for you to be able to help <script language="JavaScript" type="text/JavaScript"> function validateForm(pform) { checkFirstNames(pform.firstNamesField.value); checkLastName(pform.lastNamesField.value); checkCurrentEmp(pform.currentEmpField.value); checkEmailAddress(this.emailAddressField.value); checkJobTitle(pform.jobTitleField.value); checkDegrees(pform.degreeField.value); checkApplication(pform.applicationField.value); checkAddLanguage(pform.addLanguageField.value); checkWebPage(pform.webPageField.value); } </script> <title> Job Application </title> </head> <body background="images/Border1.png" bgcolor="#ffffff"> <table width="500" cellspacing="2" border="0" id=menuTable> <tr><td> <table width="320" cellspacing="2" cellpadding="2" align="left" border="0"> <tr><td colspan=2><h3>Menu</h3></td></tr> <tr><td><a href="default.html" >Homepage</a></td></tr> <tr><td><a href="Application_Submit.htm" onclick="alert('Apply for a Job button clicked. Reloading page')"/>Apply for a Job</a></td></tr> <tr><td><a href="back.html" onclick="alert('Job Submission button clicked but is unoperative at this time')"/>List all Job submissions</a></td></tr> <tr><td><a href="back.html" onclick="alert('Lastest Submission button clicked but is unoperative at this time')"/>Show latest submission</a></td></tr> <tr><td><a href="help.html">Help</a></td></tr> </table> <table width="380" cellspacing="2" cellpadding="2" align="right" border="0"> <tr><td><form name="JobApplication" action="javascript:alert('Submit button clicked')" onsubmit="return validateForm(this.emailAddressField.value)"> Hello, I have coded my site, and I have a form on the page, and I'm not sure why I am getting the errors I am getting. If anyone can help me out I would be forever grateful! Here is my code: http://pastie.org/366071 And if you paste it into: http://validator.w3.org/#validate_by_input then you will see what errors I have encountered. Hi created the following code: 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>validation</title> </head> <body> <ul> <li><a href="#">item1</a></li> <li><a href="#">item2</a></li> <ul> <li><a href="#">item2a</a></li> <li><a href="#">item2b</a></li> </ul> </ul> </body> </html> unfortunately it doesn't pass validation. Apparently, a "ul" elenent cannot be inserted into another "ul". So, how do i create a cascading menu? Thanks Hi, I am new to web designing and HTML. So just learning it as I go along. I validated my below HTML code in http://validator.w3.org/detailed.html and it threw lots of error and warning. Can anyone please help me understand this. Many Thanks HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Shears Design Website</title> <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> </head> <body> <div id="outer"> <div id="wrapper"> <div id="shears-logo"> <img src="images/logos/ShearsDesign.jpg"/> </div> <div id="top-nav"> <ul> <li> <a href="index.html">Home</a></li> <li> <a href="about.html">About</a></li> <li> <a href="courses.html">Courses</a></li> <li> <a href="tutorial.html">Tutorial</a></li> <li> <a href="contact.html">Contact Us</a></li> <li> <a href="imp-links.html">Important Links</a></li> </ul> </div> <div id="banner"> <img src="images/Banner/Banner.jpeg"/> </div> <div id="content"> <h1> About Shears Design</h1> <p> Shears Design is a web design and training studio having head quaters in Los Angeles, California and offices in Asia, Europe, Canada and UK. We have worked as a freelance designer since 2006 and have been creating websites since then. Our comapny is also listedin NYSE in NY, USA and NSE in Mumbai, India. <br /> <br /> <br />The websites we design have a clean professional layout and appearance with easy to understand navigation and clean, easy to read typography so your site visitors find what they are looking for and have a positive experience visiting your site.<br /> <br /> <br /> We believe in using straightforward well tested design methods which produce sites that are pleasant to visit and easy to maintain and expand when the time comes. Our websites are based on a standard layout grid which gives our clients the ability to visualize their sites in an organized way and provides a framework to quickly and efficiently create dependable and clean websites.</p> <p> </p> <p>Our major clients include Microsoft, Yahoo, Apple, Google, Dell and many other well known companies in the industry. Client satisfcation is what makes our company stand outside the crowd. We believe in designing high quality websites which are stable, user friendly and easily scalable at any given point in time.</p> <p> </p> <p>We also provide online and offline classroom training on various subject like web designing, HTML, CSS, PHP, XML, SEO etc. You can <a href="contact.html"> contact us </a> for more information.</p> <p> </p> <p> </p> </div> <div id="right-side"> <h2> Learning resources </h2> <p> For more learning resources, please refere the tutorial link at the top of the page. </p> <h3> Shears Design Frameswork </h3> <p> This is the framework we use to create websites in the training videos for Adobe Dreamwewaver, Microsoft Expression Web and the learning HTML and CSS courses. It includes the completed project templates created in the videos. The purpose of this framework is to provide you with a starting set of tools for creating websites, which you can customized to fit your needs and style. Its the toolkit we use everyday when creating websites. It works great for us and we hope it can be the start of something great for you. </p> <p> <a href="contact.html"> Click here to contact us for more information </a> <p> <h3> Small Business SEO Guide </h3> <p> SEO Guide will go over what SEO is, Keyword Research, External Link Building and OnPage Optimization techniques as well as a discussion of "Black Hat" techniques to avoid. The guide will conclude with information on adding your site to Google and Bing, working with XML sitemaps and installing Google Analytics. The videos will demonstrate the On Page SEO Techniques discussed in the guide and the procedure for adding your site to Google and Bing, creating search engine site maps and adding Google Analytics to your site.</p> <p> <a href="contact.html"> Click here to contact us for more information </a> <p> </div> <div id="social-media-icons"> <ul> <li> <a href="http://www.facebook.com"> <img src="images/logos/facebook-64x64.png"/> </a> </li> <li> <a href="http://www.twitter.com"> <img src="images/logos/twitter-64x64.png"/> </a> </li> <li> <a href="https://plus.google.com"> <img src="images/logos/google-64x64.png"/> </a> </li> <li> <a href="http://www.youtube.com"> <img src="images/logos/youtube-64x64.png"/> </a> </li> <li> <a href="http://www.yahoo.com"> <img src="images/logos/yahoo-64x64.png"/> </a> </li> </ul> </div> <div id="footer"> <p> ©2011 Shears Design | All Rights Reserved </p> <p> <a href="terms-and-conditions.html"> Terms and Conditions </a></p> <br /> </div> </div> </div> </body> </html> im pretty new still to web design but any ways yesterday i tried validation on a w3schools website and now all my images on my site are pushed to the left and im unable to align them properly and i dont know what to do to fix it any help appreciated thanks. Can anyone let me know what my problem is here please? Error Line 8 column 24723: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag. ...ear:</strong> 2005</p><p align="left" > <strong>Season:</strong> Spring</p><p a Deleted By User. When I asked my web designer to validate the site design through http://validator.w3.org/, he agreed to it. But when I tested it, there were 2 Errors, 92 warning(s) . When I enquired about it, the designer says there is nothing to worry about warnings. And as there are just 2 errors, it would not be a big problem. Is it right? How this will affect SEO? Can this be search engine friendly website? Hello again, I had a problem resolved today with one of my pages. And it had to do with validating my page and the CSS. The HTML validation is done at w3.org I have come across something that has amazed me. I am a complete amateur but can't understand how I have gone this long without knowing this. What is the story with the "/>" at the end of the meta tags? Up until now my meta tages have looked like this HTML Code: <meta name="description" content="description here"> Now that I have discovered it is a good idea to validate your pages I have found that all these things are errors! It makes me write it like this to get rid of the error. HTML Code: <meta name="description" content="description here" /> Infact, everything in the head has to end with the ../> or it's an error. I have no idea why. And this whole validation thing is new to me anyway. I'd appreciate it if someone explained to me what is going on here. thank you. I am not sure what I am doing wrong with this page but the validation fails. Any help? http://www.h51school.com/ I'm not sure what these errors mean. I am using HTML 4.01 Strict! Errors highlighted in red. 1) Line 8, Column 77: NET-enabling start-tag requires SHORTTAG YES. js/ddaccordion.js" type=text / javascript></script> 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. 2) Line 2, Column 12: there is no attribute "XMLNS". <html xmlns= " http://www.w3.org/1999/xhtml" xml:lang="en"> You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).... 3) Line 2, Column 52: there is no attribute "XML:LANG". <html xmlns="http://www.w3.org/1999/xhtml" xml:lang= " en"> You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).... |