HTML - How To Correct Validation Error
I have a web page that I still have 4 validation errors on (all for the same problem in different lines). The error lines and the validation error for them is below. Any ideas as to how to correct this would be appreciated. Thanks.
HTML Code: <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"><span style="mso-fareast-font-family: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><b><font face="Times New Roman" size="5"> Page Title</font></b></span></p> <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"><font face="Times New Roman" size="4" color="#000080"><i> </i></font></p> <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"> </p> <p align="left" style="line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 3; margin-bottom: 3"><i><font face="Times New Roman" size="4" color="#000080"> </font> Validation error: Below are the results of checking this document for XML well-formedness and validity. Error Line 44 column 111: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag. ...: 0; margin-top: 3; margin-bottom: 3"><span style="mso-fareast-font-family: T The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). Similar TutorialsHi, I am trying to accurately code a swf header into my website. I don't have the knowledge to arrange the code so it passes html validation. The following link will take you to the site and validation results. http://validator.w3.org/check?uri=ht...sale.net.au%2F And here a link to the website http://www.bikesforsale.net.au Any help or guidance will be gratefully received Cheers Ron Hi all, I have recently begun updating my website to XHTML and I have encountered the following error and I am not sure what I am doing incorrectly. Any advice would be very welcome. http://www.dynamic-xchange.com/DXServices.php http://validator.w3.org/check?uri=ht...doctype=Inline Best Regards, Simon My html is attached, I was wondering what I can do to fix what is wrong with my website! I can't see anything, but I do know that two of the buttons don't work, most likely because of the website not being validated. Any help is appreciated! BTW, just remove the .txt for it to become an html doc. to validate it just try this: http://validator.w3.org/ I don't know what the errors mean: HTML Code: No Character Encoding Found! Falling back to UTF-8. None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliably validate the document. As a fallback solution, the "UTF-8" encoding was used to read the content and 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. Unable to Determine Parse Mode! The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because: the MIME Media Type (text/html) can be used for XML or SGML document types No known Document Type could be detected No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document. No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of the document. As a default, the validator is falling back to SGML mode. No Character encoding declared at document level No character encoding information was found within the document, either in an HTML meta element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc. See this tutorial on character encoding for techniques and explanations. Validation Output: 1 Error Line 1, Column 1: end of document in prolog ✉ This error may appear when the validator receives an empty document. Please make sure that the document you are uploading is not empty, and report any discrepancy. 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. i'm trying to figure out what i'm doing wrong with adding some ssi into my codes. i'm trying to get my menu to be to the left of my main body information of each page. i got it working by pure luck on this one, but i can't get it working on the other pages. here's some of the code from the correctly working page: .... <body> <table class="try" cellspacing="0"> <tr> <!---#include file= "ssi/header.ssi"--> <!--************Header Cell start***********--> <tr> <!---#include file= "ssi/menu.ssi"---> <!--**********Menu cell stops**********--> <!--**********Body cell starts*********--> <td class="body"> <!--**********BODY CONTENT...ALL!**********--> <h2 class="texttitle"> Text + Lists Page</h2> <p class="book"> <a href="http://www.thelatinlibrary.com/cicero/fin.shtml"> The Extremes of Good and Evil</a></span> <p class="author">by Cicero (circa 45 B.C.)</span> .... and here's one from my other pages: .... <body> <tr> <!--#include file= "ssi/header.ssi"--> </tr> <tr> <!--#include file= "ssi/menu.ssi"--> <form action="http://usm.maine.edu/cgi-bin/cgi-mailer.pl" method="post"> <p><input name="destination" value="brandonmckenney@gmail.com" type="hidden"></p>....... those are just from the beginning parts of my body sections. what am i doing wrong. the menu shows up but it shows up on top of the body info like the header. any help will be greatly appreciated as this is due on my server for class tomorrow morning! I understand that there should only be one H1 tag in a document, but what about H2, H3 etc. For example if I had a page listing products I would apply the H1 tag to the category, but I think the products in the list would be of equal importance, so would it be semantically correct to apply H2 tags to the products? And to take it a bit further, if each of the product had options (i.e. sub-products), would it be correct to apply H3 tags to the options? e.g. <h1>Dogs</h1> <h2>Labrador</h2> <h3>Golden</h3> <h3>Chocolate</h3> <h3>Black</h3> <h2>Collie</h2> <h3>Border</h3> <h3>Rough</h3> <h3>Bearded</h3> <h2>Boxer</h2> <h2>Retreiver</h2> <h3>Golden</h3> <h3>Flat coat</h3> Thanks How do i insert a coloured line in the page without declaring the line propertoes in the CSS. I've used the following code, but the W3C validator was not happy. It said there's something wrong with the last portions of the code line. I use HTML 4.01 Transitional doctype.The HTML code I used is .... <hr size="1" Width="90%" align="center" color="#ff6600" /> Please help with the correct syntax or tips. Even better would be how to make it happen by inserting these <hr> styles into the CSS. (I'm a beginner in HTML) I'm currently using .em for font size. I have set the font size and font in body, but the font is not being applied to inputs and the font size is not being applied to lists. My font size is currently set at 1em, and I have to put 100% as font size in my divs for it to be 1em. I'm wondering how and where I should set the font and font size so it will apply to everything? OK, I have been using tables in a lot of legacy code to divide up a web page. So, what is the new "standard"? I've seen the use of DIVs which I like actually, they are a little tricky with the float option, especially if you want some padding or borders, some adjustments need to be made, but eventually when that's done it works out nice. But anyway, so what's the new element/construct modern HTML designers are using?!?! Trying to google this and really hitting a lot of ambiguity. Obviously the old "frame" element has gone the way of the dodo bird a long time ago. Thank you, my lords. I am making my band a website. I have all the graphics i need (as in the menu and background), but I don't know how to put it all together and make it good looking. here is a picture of the general idea. That would go all the way to the bottom of the page and all the rest of the space would just be black. Now of course, thats not how it would exactly look, that was just a map out that I made in two seconds. I need just the area where people read all the info and such to scroll alone, and to have nothing else to do so. Just in case anyone doesn't know what i mean by "put it all together" I mean to get the top thing where it says band name on, and have the menu on the side, the place where everyone reads next to it, a bit of space below the area where people read, and the whole left be just black. thanks in advance EDIT- I realized i also should probably say this too. There is a graphic that runs through the entire page (band name area, menu, and place where people read). The band name area is a jpg, menu is a flash file, and then the place where people read is just regualr. I have a piece of code that looks like this: <p class="stylegoeshere"> <h3>...</h3> ... </p> I'm not sure if this is semantically correct If not, then I'll have to use this: <div class="stylegoeshere"> <h3>...</h3> <p> ... </p> </div> Hi all, I have made a very basic page (dont laugh its my first attempt)..I need someone to help me out with a proper linked site etc soon..for $ if need be http://www.remotehydroponics.com/ http://www.remotehydroponics.co.uk/ I have got the hang of the cpanel etc I followed a youtube tutorial on how to add the meta tags etc then I submitted the urls to google. When I go to this site to check the meta tags they are all coming back blank.. http://www.submitexpress.com/analyzer/ Here is the code as of the page..... Any help greatly apreciated below is from a W3C linkchecker - how do I provide a valid URL for validating my page? The link provided by W3C isn't valid? - my page www.colletts.co.uk Quote: Fragments listed are broken. See the table below to know what action to take. Code Occurrences What to do 403 1 The link is forbidden! This needs fixing. Usual suspects: a missing index.html or Overview.html, or a missing ACL. http://validator.w3.org/check?uri=ht....uk/index.html What to do: The link is forbidden! This needs fixing. Usual suspects: a missing index.html or Overview.html, or a missing ACL. Response status code: 403 Response message: Checking non-public IP address disallowed by link checker configuration Line: 258 Hi, I was trying to create a drop down menu so that there are more links the user can access, but when I opened it in IE, i noticed that when i move my mouse to the interface that initiates the drop down, the drop down actually drops down at the wrong place. for example, if i have the drop down menu bar in the middle of the screen, and move my cursor to the bar, the drop down would occur at the top of the screen. When I tried this in firefox, it works fine. Can anyone help me out? Hello guys, I have just created a simple website using Flash. Then I have embedded this .swf movie onto simple HTML document. I am wondering if you could check that HTML code for me and let me know whether it is correct. http://www.icebergfilms.com Thank you so much for your help. First of all, is this the correct place for a post like this? K, I need a photogallery on my website but is there any easier way to do it other than just taking every image, resizing to a thumbnail, placing in a table, then linking to a new page with the big image on it? I can also do a slide show or anything really. I have like 700 pictures total and want to set up around three galleries. Is there a java script, etc. for this? Thanks a ton! I am using: Code: <base href="./mpl.htm" target="_window2" /> where mpl.htm is a local file and window2 is the target to open each new window, something just smells fishy for some reason? |