May 4, 200917 yr Hi I had my webste all sorted out for my assignment. I just read something maybe I should have noticec a while ago! My website was HTML 4.0 and i've now had to change it to XHTML 1.0.. this has caused me 37 errors all of which I have to sort out for my assignment. Problem is, i dont even know where t start because i have no idea what half of them are! Ive tried changing them but its messed it up more lol. Can anyone help? x Update: Ive sorted some of the HTML out and got it down to 13 errors! phewwwf!
May 4, 200917 yr Hi I had my webste all sorted out for my assignment. I just read something maybe I should have noticec a while ago! My website was HTML 4.0 and i've now had to change it to XHTML 1.0.. this has caused me 37 errors all of which I have to sort out for my assignment. Problem is, i dont even know where t start because i have no idea what half of them are! validator results Ive tried changing them but its messed it up more lol. Can anyone help? x back up your old page and try this <!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> <meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" /> <title>Leanne Orr's Personal Website</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="practice.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="container"> <div id="top"> <h1>Leanne Orr</h1> </div> <div id="submenu"> <div id="menuh"><a href="http://www.numyspace.co.uk/%7Eunn_t005763/" class="top_parent">Homepage</a> <a href="http://www.numyspace.co.uk/%7Eunn_t005763/about.html" class="top_parent">About me</a> <a href="http://www.numyspace.co.uk/%7Eunn_t005763/achievements.html" class="top_parent">Achievements</a> <a href="http://www.numyspace.co.uk/%7Eunn_t005763/myvideos.html" class="top_parent">My videos</a></div> </div> <div id="leftnav"><img src="http://www.numyspace.co.uk/~unn_t005763/images/leanneandfriends.jpg" alt="leanne and friends" /></div> <div id="content"> <h2>Welcome to my personal website</h2> <p>I have created this personal website for an assignment I have been given under one of my modules at University.<br /> This website details my life, and it also contains an extra page on a knowledgeable subject that I have studying and added as part of my assignment.<br /> <br /> Here I will showcase my interests, hobbies, photographs and videos. All of the images and videos on this website have been taken by me.<br /> <br /> I hope that you enjoy viewing this website.<br /> Thanks<br /> Leanne</p> </div> <div id="footer"> <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88" /></a></p> </div> </div> </body> </html> on the validator you will see the tidy up check box this will clean your html up your doc type is set to strict in the html above hope this helps
May 4, 200917 yr Author Hey, i've just tried this and it passed! But it has to be transitional sorry i didnt mention it in my first post x
May 4, 200917 yr Strict will pass as transitional, just swap the doctype. Transitional is just a more relaxed version of strict. It's html and xhtml that have there differences, mainly the self closing elements /> So change <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> To this <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> And it should be fine (:
May 4, 200917 yr I would take out the references to <meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" /> and <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88" /></a></p> Your lecturer might object to the use of HTML tidy, having expected you to do the coding. p.s. please let us know what mark we got for our assignment
Create an account or sign in to comment