Can’t Validate my assignment on W3C
-
Hi all i’m having problems validating my xhtml assignment. Any ideas why it isn’t working? I’m very new to this. Please point out if you know what i’ve done wrong. Thanks
<!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Via Roma Italian Restaurant</title> <link rel="stylesheet" type="text/css" href="vrstyle.css" /> </head> <body> <h1>Italian Organic Restaurant</h1> <hr/> <p><a href="index.html">HOME|</a> <a href="menu.html">MENU</a> <a href="juices.html"> |JUICES |</a> <a href="contact.html">CONTACT |</a> <a href="Functions.html">FUNCTIONS |</a> <a href="staff.html">STAFF |</a></p> <hr/> <h2>WELCOME</h2> <h3><img src="restaurant.gif" alt="restaurant logo" width="48" height="43" /> The Restaurant</h3> <p> A traditional family run restaurant, we serve fresh Italian cuisine made with organic local produce. Delicious selection of veggie, seafood, meat pasta and pizzas prepared in our traditional wood-fired oven. Keep healthy and have fun by joining us for a meal or taking out fresh, fun meals. </p> <h3><img src="drinks.gif" alt="drinks logo" width "40" height="41" /> The Juice Cellar</h3> <p> Our juice cellar offers a wide selection of carefully chosen Yum juices representing great quality, excellent value and a healthy option. </p> <h3>Come and Join us</h3> <p>The blog I need help with is: (visible only to logged in users)
-
Sorry here it is in full :-)
<!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Via Roma Italian Restaurant</title> <link rel="stylesheet" type="text/css" href="vrstyle.css" /> </head> <body> <h1>Italian Organic Restaurant</h1> <hr/> <p><a href="index.html">HOME|</a> <a href="menu.html">MENU</a> <a href="juices.html"> |JUICES |</a> <a href="contact.html">CONTACT |</a> <a href="Functions.html">FUNCTIONS |</a> <a href="staff.html">STAFF |</a></p> <hr/> <h2>WELCOME</h2> <h3><img src="restaurant.gif" alt="restaurant logo" width="48" height="43" /> The Restaurant</h3> <p> A traditional family run restaurant, we serve fresh Italian cuisine made with organic local produce. Delicious selection of veggie, seafood, meat pasta and pizzas prepared in our traditional wood-fired oven. Keep healthy and have fun by joining us for a meal or taking out fresh, fun meals. </p> <h3><img src="drinks.gif" alt="drinks logo" width "40" height="41" /> The Juice Cellar</h3> <p> Our juice cellar offers a wide selection of carefully chosen Yum juices representing great quality, excellent value and a healthy option. </p> <h3>Come and Join us</h3> <p> Great food and drinks combined with friendly, attentive service and a pleasant environment makes Via Roma the perfect choice for any occasion. </p> <p>Via Roma 12 High st Wellworld Tel: 0208 444 4444 <p> </body> </html> -
Some of your code is missing (menu a tags), and secondly, this is not an HTML forum. If I give you the corrected code how will you learn?
Look carefully at the following corrected code and compare it to yours to see what you did wrong.
<p><img src="restaurant.gif" alt="restaurant logo" width="48" height="43" /></p> <h3>The Restaurant</h3><p><img src="drinks.gif" alt="drinks logo" width="40" height="41" /></p> <h3>The Juice Cellar</h3><p>Via Roma 12 High st Wellworld Tel: 0208 444 4444 </p>And you need a space between the quote marks in the first line
…Strict//EN” “http://…
-
Hello thank you for pointing them out to me :-) i changed all the things you corrected. But it still isn’t going through :-( What do you mean abou the manu tag? God i’m so new to this so please forgive for being thick hehe
-
Just for your edification:
Image tags have to be enclosed within “p” or “div” tags.
Never include an image tag inside an “h” tag (or any other text formatting tag for that matter). Text formatting cannot be applied to an image. Always place the opening text formatting tag right at the beginning of the string of text.
-
I might have missed something. Look at the validation report, go to that line number and look to see what is going on.
The code for the menu’s simply did not show up here in the forums since you did not wrap the code in backticks (key to the left of the #1).
Paste your entire code again like this
backtick
code
backtickand I’ll have another look.
-
-
<!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Via Roma Italian Restaurant</title> <link rel="stylesheet" type="text/css" href="vrstyle.css" /> </head> <body> <h1>Italian Organic Restaurant</h1> <hr/> <p><a href="index.html">HOME|</a> <a href="menu.html">MENU</a> <a href="juices.html"> |JUICES |</a> <a href="contact.html">CONTACT |</a> <a href="Functions.html">FUNCTIONS |</a> <a href="staff.html">STAFF |</a></p> <hr/> <h2>WELCOME</h2> <p><img src="restaurant.gif" alt="restaurant logo" width="48" height="43" /></p> <h3>The Restaurant</h3> <p> A traditional family run restaurant, we serve fresh Italian cuisine made with organic local produce. Delicious selection of veggie, seafood, meat pasta and pizzas prepared in our traditional wood-fired oven. Keep healthy and have fun by joining us for a meal or taking out fresh, fun meals. </p> <p><img src="drinks.gif" alt="drinks logo" width="40" height="41" /></p> <h3>The Juice Cellar</h3> <p> Our juice cellar offers a wide selection of carefully chosen Yum juices representing great quality, excellent value and a healthy option. </p> <h3>Come and Join us</h3> <p> Great food and drinks combined with friendly, attentive service and a pleasant environment makes Via Roma the perfect choice for any occasion. </p> <p>Via Roma 12 High st Wellworld Tel: 0208 444 4444 </p> </body> </html> -
You forgot the backticks before and after the code. It is the little symbol that looks like an apostrophe leaning to the left. Put one at the beginning of the code and one at the end of the code.
-
-
-
You’re welcome, and don’t fret. You will get it and soon be coding with the best of them.
-
'<!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Via Roma Italian Restaurant</title> <link rel="stylesheet" type="text/css" href="vrstyle.css" /> </head> <body> <h1>Italian Organic Restaurant</h1> <hr/> <p><a href="index.html">HOME|</a> <a href="menu.html">MENU</a> <a href="juices.html"> |JUICES |</a> <a href="contact.html">CONTACT |</a> <a href="Functions.html">FUNCTIONS |</a> <a href="staff.html">STAFF |</a></p> <hr/> <h2>WELCOME</h2> <p><img src="restaurant.gif" alt="restaurant logo" width="48" height="43" /></p> <h3>The Restaurant</h3> <p> A traditional family run restaurant, we serve fresh Italian cuisine made with organic local produce. Delicious selection of veggie, seafood, meat pasta and pizzas prepared in our traditional wood-fired oven. Keep healthy and have fun by joining us for a meal or taking out fresh, fun meals. </p> <p><img src="drinks.gif" alt="drinks logo" width="40" height="41" /></p> <h3>The Juice Cellar</h3> <p> Our juice cellar offers a wide selection of carefully chosen Yum juices representing great quality, excellent value and a healthy option. </p> <h3>Come and Join us</h3> <p> Great food and drinks combined with friendly, attentive service and a pleasant environment makes Via Roma the perfect choice for any occasion. </p> <p>Via Roma 12 High st Wellworld Tel: 0208 444 4444 </p> </body> </html>'Like that?
-
-
-
<!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Via Roma Italian Restaurant</title> <link rel="stylesheet" type="text/css" href="vrstyle.css" /> </head> <body> <h1>Italian Organic Restaurant</h1> <hr/> <p><a href="index.html">HOME|</a> <a href="menu.html">MENU</a> <a href="juices.html"> |JUICES |</a> <a href="contact.html">CONTACT |</a> <a href="Functions.html">FUNCTIONS |</a> <a href="staff.html">STAFF |</a></p> <hr/> <h2>WELCOME</h2> <p><img src="restaurant.gif" alt="restaurant logo" width="48" height="43" /></p> <h3>The Restaurant</h3> <p> A traditional family run restaurant, we serve fresh Italian cuisine made with organic local produce. Delicious selection of veggie, seafood, meat pasta and pizzas prepared in our traditional wood-fired oven. Keep healthy and have fun by joining us for a meal or taking out fresh, fun meals. </p> <p><img src="drinks.gif" alt="drinks logo" width="40" height="41" /></p> <h3>The Juice Cellar</h3> <p> Our juice cellar offers a wide selection of carefully chosen Yum juices representing great quality, excellent value and a healthy option. </p> <h3>Come and Join us</h3> <p> Great food and drinks combined with friendly, attentive service and a pleasant environment makes Via Roma the perfect choice for any occasion. </p> <p>Via Roma<br /> 12 High st<br /> Wellworld<br /> Tel: 0208 444 4444<br /> </p> </body> </html>Found it. Still isn’t going through. I’m stuck :-(
-
@skyblue12 I edited your replies so I could place the codes between back-ticks. other than that there where no changes made to the codes nor your replies.
Edit: The back tick key is the button left of the number 1 key
-
For text links, the syntax is as follows:
<a href="url">Link text</a>Since the code you posted above validates, the errors have to be in the menu code.
- The topic ‘Can’t Validate my assignment on W3C’ is closed to new replies.