HTML - How To Handle Errors In Html Page
suppose you see a html layout having some alignment problems or image placement problems, what steps do you follow to solve the problem?
I need to write a document on error handling in HTML and CSS so any help please? Similar TutorialsHello again everyone: Thanks to those that help with advice regarding my drop-down box issue earlier. I'm posting this thread now because I have a couple different errors occuring on pages, and was wondering if anybody could help me to clear them up. Here are the error descriptions below: Line: 2 Char: 1 Error: Syntax error Code: 0 URL: main index page!!! (this error popped up upon loading site) Line: 12 Char: 81 Error: 'top.d.getElementById(...)' is null or not an object Code: 0 URL: main index page!!! (this error popped up upon loading site) Line: 37 Char: 1 Error: 'top.w.frames.0.length' is null or not an object Code: 0 URL: main index page!!! (this error popped up upon clicking enter link) My "main index page" is of course the very first page people see. This page is simply just a disclaimer statement, followed by a link to direct the visitor to the next page, or "home" page. When I mention "enter link" above, I am referring to this only link on the page...any ideas from anyone on how to get to the bottom of this one? Thanks... hi friends I am looking for an online tool which will list all the class name that are referenced in a web page and aren't defined in a CSS. for eg: <div class="button"> but classname "button" is not defined anywhere in stylesheet. please suggest me any tool which can help me. thanks to all for ur time and effort. When I load my website, in the down left corner I got a message of Done, but with errors when checking the errors i get this descriptuion Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E) Timestamp: Wed, 4 May 2011 12:59:43 UTC Message: 'null' is null or not an object Line: 29 Char: 1474 Code: 0 URI: http://maps.gstatic.com/intl/en_us/m...3/4/12/main.js what's the problem? I've got 2 pages with in total 8 errors I can't get them fixed. Could someone please help me? first page: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.don.alaerts-work.be%2Faccount.php%3Fuser%3Dlisa&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1 &group=0&verbose=1&user-agent=W3C_Validator%2F1.2#line-81 and second page: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.don.alaerts-work.be%2Freageer.php%3Fuser%3Ddon%26id%3D40&charset=%28detect+automatically%29&doctype=Inline&ss=1& outline=1&group=0&verbose=1&user-agent=W3C_Validator%2F1.2 I've tried everything. All my other pages are valid except those 2. Kind regards & thanks in advantage, I have recently seen the IE "Error on page" status popping up on my website http://www.bluchip.gg/home. The errors a Line: 322 Char: 7 Error: Expected ':' Code: 0 Line: 45 Char: 8 Error: Exception thrown and not caught Code: 0 Line: 206 Char: 37 Error: Unterminated string constant Code: 0 I'm using Dreamweaver CS3 and I've validated the page and everything is fine. I've looked through the code to find the places specified but all looks fine to me (probably looking in the wrong place! ). These errors come up on all my pages (I'm using a template so I think the errors are in that). Any ideas what is wrong? Hello, on my page i am having 3 problems at the moment. >>The first, is that in firefox my page is centered, and in IE it is not. >>The second, is that my navigation bar (in a table) seems to be putting a pixel in between my image links, EVEN THOUGH i have specified border="0" and border:0 in my css and my html. >>The third, is that 4 images arent showing up (on test.html), but i can click on the area where they SHOULD be showing up, and use them as invisible links. I want the images to show up. I must also specify that i am working to make it look perfect in FIREFOX, but if you could suggest anything that would improve it visually in IE too, that would be a bonus. Thanks in advance if you can help me! I've included a zip of the files rather than pasting all the code. Thanks again. 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).... Hi guys, I have a html template I use a lot that I have been adding/removing bits for ages. The output (when viewed in a browser) is just what I need but I think the coding behind it may have become a bit messey. Ive tried to tidy the coding up a bit but im not very good with html tables and everything falls apart. If someone could have a look and remove anything that is not needed (coding)it would be very much appricated. Code: <TABLE align=center border=2> <TR vAlign=top> <TD colSpan=2> <CENTER><BR><FONT size=2><A href="http://feedback.ebay.co.uk/ws/eBayISAPI.dll?ViewFeedback&userid=top.bargain&ssPa geName=STRK:ME:UFS" target=_blank><IMG alt=TopBargain src="http://www.topbargain.pwp.blueyonder.co.uk/images/Template/Top.BargainLogo.gif" border=0></A> <BR><BR>Purchase With Confidence. <A href="http://feedback.ebay.co.uk/ws/eBayISAPI.dll?ViewFeedback&userid=top.bargain&ssPa geName=STRK:ME:UFS"><I>VIEW FEEDBACK.</I></A> A Trusted eBay Power Seller. <A href="http://members.ebay.co.uk/ws/eBayISAPI.dll?ViewUserPage&userid=top.bargain"><IMG src="http://www.topbargain.pwp.blueyonder.co.uk/images/Template/aboutme-small.gif" border=0> </A><p></CENTER></FONT></TD></TR> <TR vAlign=top> <TD> <P align=center><B>Description:</B></TD> <TD rowSpan=6><IMG height=600 alt="Picture Name" src="URL" width=300> </TD></TR> <TR vAlign=top> <TD><BR> <UL><FONT size=2>DESCRIPTION <P> <LI> <LI> <LI> <P> </P> <LI> <LI> </UL></FONT></TD></TR> <TR vAlign=top> <TD> <P align=center><B>Postage:</B> </P></TD></TR> <TR vAlign=top> <TD><BR> <UL> <LI><FONT size=2>Please Check Table At Bottom For UK Postal Rates <LI>Fast Delivery Via An Insured/Traceable Courier <LI>Please Click <A href="http://members.ebay.co.uk/ws/eBayISAPI.dll?ViewUserPage&userid=top.bargain" border="0"><IMG src="http://pics.ebaystatic.com/aw/pics/uk/aboutme-small.gif" border=0></A> For Full Details.</LI></UL></FONT></TD></TR> <TR vAlign=top> <TD> <P align=center><B>Payment Methods:</B> </P></TD></TR> <TR vAlign=top> <TD><BR> <P align=center><A href="http://www.paypal.co.uk/uk" target=_blank><IMG style="WIDTH: 253px; HEIGHT: 56px" height=52 alt=TopBargain src="http://www.topbargain.pwp.blueyonder.co.uk/images/Template/PaypalLogo.gif" width=253 border=0></A></P> <UL> <LI><FONT size=2><I>Bank Transfer. <LI>Money/Postal Orders and Cheques Accepted.<FONT color=white>.................. </FONT> <DIV></DIV></LI></UL></I></FONT></TD></TR></TABLE> <DIV></DIV></LI></UL></I></FONT></TD></TR></TABLE> Hi all, I use this template quite a lot and was wondering if someone could have a look at the coding and remove any errors? 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=ISO-8859-1"/> <link rel="shortcut icon" href="img/favicon.ico" /> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> <title>Top Bargain</title> </head> <body> <table align=center border=2> <tr vAlign=top> <td colSpan=2> <center> <br /> <font size=2><a href="http://feedback.ebay.co.uk/ws/eBayISAPI.dll?ViewFeedback&userid=top.bargain&ssPa geName=StrK:ME:UFS" target="_blank"><img src="http://www.topbargain.pwp.blueyonder.co.uk/images/Template/Top.BargainLogo.gif" alt="TopBargain" border="0" /></a> <br /> <br /> Purchase With Confidence. <a href="http://feedback.ebay.co.uk/ws/eBayISAPI.dll?ViewFeedback&userid=top.bargain&ssPa geName=StrK:ME:UFS"><em>VIEW FEEDBACK.</em></a> A Trusted eBay Power Seller. <a href="http://members.ebay.co.uk/ws/eBayISAPI.dll?ViewUserPage&userid=top.bargain"><img src="http://www.topbargain.pwp.blueyonder.co.uk/images/Template/aboutme-small.gif" border="0"> </a><p> </font> </center> </td> </tr> <tr vAlign=top> <td> <h3 align=center>Description:</h3> </td> <td rowSpan=6> <img src="URL" width="300" height="600" alt="Picture Name" /> </td> </tr> <tr vAlign=top> <td> <br /> <ul> <font size=2><p>DESCRIPTION</p> <li></li> <li></li> <li></li> <li></li> <li></li> </font> </ul> </td> </tr> <tr vAlign=top> <td> <h3 align=center>Postage:</h3> </td> </tr> <tr vAlign=top> <td> <br /> <ul><font size=2> <li>Please Check Table At Bottom For UK Postal Rates</li> <li>Fast Delivery Via An Insured/Traceable Courier</li> <li>Please Click <a href="http://members.ebay.co.uk/ws/eBayISAPI.dll?ViewUserPage&userid=top.bargain" border="0"><img src="http://pics.ebaystatic.com/aw/pics/uk/aboutme-small.gif" border=0 /></a> For Full Details.</li> </font> </ul> </td> </tr> <tr vAlign=top> <td> <h3 align=center>Payment Methods:</h3> </td> </tr> <tr vAlign=top> <td> <br /> <p align=center><a href="http://www.paypal.co.uk/uk" target=_blank><IMG style="WIDTH: 253px; HEIGHT: 56px" height=52 alt=TopBargain src="http://www.topbargain.pwp.blueyonder.co.uk/images/Template/PaypalLogo.gif" width=253 border=0></a></p> <ul><font size=2> <li><em>Bank Transfer.<em></li> <li>Money/Postal Orders and Cheques Accepted.<FONT color=white>.................. </font> </body> </html> I had to use that color=white....... piece otherwise the table is too small, can not find a solution to using something else. Any help appriciated. Thanks [quote]Hi All, :) BEGINNER WILLING TO PAY/DONATE www.htmlforums.com OR (YOU IF AUTHORIZED) $25.00 (TWENTY FIVE DOLLARS) FOR YOUR HELP, CORRECTING SOME BASIC MISTAKES. THE SIMPLE SITE CAN BE VIEWED CORRECTLY FROM HERE (CLICK BELOW). BUT NOT WITH INTERNET EXPLORER. Mistakes started to appear, when a simple Drop Down Menu was used. Mistakes with the basic tags <head></head>, <body></body>, <br/>, <html></html>, doc type, etc. [size="7"]The site can be viewed with all browsers, except with Internet Explorer 7, 8 and 9, which doesn't display the pictures, and / or the TWO newsletters CORRECTLY. It can be seen correctly with I.E.6, Google Chrome, Mozilla Firefox, Safari, Flock, Opera, etc. I can see the site using I.E. 7-9 with out the drop down menu. I was told, that Internet Explorer is "The only MISTAKE unforgiving BROWSER". PLEASE HELP! Help and or any tip, suggestions, etc, will be greatly appreciated. THE SITE WAS MADE TO HELP THE HOMELESS. IT IS A NON PROFIT SMALL ORG. WWW.HOMELESS-FORUM.ORG, WHO DOESN'T HAVE MONEY TO PAY. http://www.homeless-forum.org BUT I AM WILLING TO DONATE THE $25.00 TO WWW.HTMLFORUMS.COM FOR YOUR HELP. PS. SOME MISTAKES LEFT ON PURPOSE TO EXPLAIN TO YOU, WHAT THINGS WE WOULD LIKE TO DO. I.E. a PDF.FILE as 1ST PAGE. SELECTION BOX BETTER LOOKING, ANOTHER OPTION to go to GOOGLE, IMPROVE SITE A LITTLE IF YOU CAN, ETC. THE FOLLOWING IS THE INDEX FILE WE NEED TO CORRECT: WEBSITE html://www.homeless-forum.org Code: <!DOCTYPE html> <html> <head> <title>HELP THE HOMELESS!</title> <body> <script type="text/javascript"> window.onload=function() { document.getElementById('NewsletterList').onchange=function() { window.location=('http://www.homeless-forum.org/'+this.value+''); } } </script> <br> <select id="NewsletterList"> <a target=\"_blank\" href=\"file.doc\" title=\"\">John Doe<br> XXXXXXXXXXX<br/></a>. <option value=""><b> PLEASE SELECT<b/></option><!--this option takes you to --> <body mar="0" marginheight="0" bgcolor="rgb(38,38,38)"> "BACKGROUND BLUE GREEN MARMOL " <embed width="100%" height="100%" name="plugin" src="http://can-Imake-pdf-file-1stPage?.pdf" type="application/pdf"> <option value=index.htm>Option #1</option><!--this option takes you to --> <option value="option2">Option #2</option><!--this option takes you to --> <option value="option3">Option #3 </option><!--this option takes you to --> <option value="option4"><br>Option #4</br></option><!--this option takes you to --> <option value="option5">Option #5</option><!--this option takes you to --> <option value="option6">Option #6</option><!--this option takes you to --> <option value="blog/wp-login.php"><!--this option takes you to blog--> </select> <html xmlns:v="urn:schemas-microsoft-com:vml" ............... </body> </html> Hi, Background: I have a small page that need to be embeded into a bounch of other html pages. Help needed: 1. Please provide the html chunk that I can use to embed the small page in to other html pages. 2. Is there a way of not using iframe? Can I use <Object> or <embed>? How? --------------------------- mba colleges in london hospitality management diploma Here is the page I am currently working on. Everything is funtioning and working properly. But there's a problem. I validate my page and I get errors fo the style sheets in the head. It is the cause of like 5 errors on my page. Theres 2 other errors are so, but they are fixable and I will get to them after I fix the style sheet errors. NOTE: The default style sheet is chose using PHP. Here is the whole coding for the actual head of my site, what you don't see in the "view source": <link rel="stylesheet" type="text/css" media="screen" title="User Defined Style" href="<?php echo (!$sitestyle)?'layout':$sitestyle ?>.css" /> <link rel="alternate stylesheet" type="text/css" media="screen" title="playstation interface" href="ps3.css" /> <link rel="alternate stylesheet" type="text/css" media="screen" title="wii interface" href="wii.css" /> <link rel="alternate stylesheet" type="text/css" media="screen" title="xbox interface" href="xbox.css" /> I am using multiple style sheets that user can change, and when they change, the page sets a cookie on there browser. I got this trick from alistapart.com. It works great so people that like an individual game system can change the layout, but I just wanted to fix these errors because it is chaining into other errors on the page. Does anyone have a solution for fixing this problem? I have done much research and messed around with it alot, but all things have failed. I also don't understand what hte title and media things mean in the link to the style sheet. If someone could define this for me I would appriciate it. HI everyone, I am in process of creating a sample page. I need to pass values from one HTML page and i should get those values in other page. For example i have used two sample pages like, sample.html l<html> <head> <title> My first page </title> </head> <body> <a href="sample1.html" id="1001">Welcome to html </a> </body> </html> sample1.html <html> <head> <title> My second page </title> </head> <body> <a href="sample1.html">Sample HTML page values came here</a></body> </html> I have used those two sample pages and i need to get the value of id="1001" in sample 1.html page could anyone help me to solve this problem. Thanks in advance Regards, Martin I am trying to find a way for users to download up to date document file on a webpage. Many users click on the link to a document file and open rather than save the file to a specific location. In the future, the document file gets updated and if the user clicks on the link and open the document file, a browser brings up old document file that has been saved before in temporary files directory instead of opening up updated document. I know that I can tell users to save the document to a specific location on their machine, but I want to know if there is a way to avoid this issue using a script if there is any. I believe in thread titles that get to the point. I have a basic page, when the page loads I want people to see the top of the page for a few seconds while a flash starts to load but then I want the page to scroll down a bit so the visitor can see the flash load progress status. I just want code that I can copy into my page. I don't have access to the flash code. Greg (the page under design) www.mytcanada.com/designer.html I have a programmer in the US who starts pages for me and then I much around with them until it's looks like I want. He helps me when I get stuck but he's on holidays. Any help would be great. Hi, Is there any possible to show a HTML or ASP page inside the table. I have tried with frames but i dont know how to execute exacltly. Thanks |