Free Garden Catalogs

Web Page Design help?

I've been having some trouble with putting this through the W3C validator. Can someone help me with this. My main problems are: Line 20, Column 25: required attribute "alt" not specified Line 27, Column 33: required attribute "alt" not specified Line 32, Column 1: end tag for "div" omitted, but OMITTAG NO was specified ***************************************************************************************************** <!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> <title>Validator Exersize</title> </head> <body> <div id="entire-page"> <div id="top-section"> <img src="banner.jpg" alt="banner" /> <div id="logo"> <h1>My Company</h1> <h2>100 Main St., Minneapolis, MN</h2> </div> <p> We talk about flowers all the time, stop in and chat. We offer an inviting environment where you can view plants and talk to the master gardener. We serve free coffee and pastries all day long. </p> <p><img src="patio.jpg"/></p> </div> <div id="sidebar"> <h2>Garden Photos</h2> <p> <img src="sunflower.jpg" alt="sunflower closeup"/> <img src="astilbe.jpg" /> </p> </div> </body </html>

Public Comments

  1. <img src="patio.jpg"/> <img src="astilbe.jpg" /> You didn't assign an alt values for those 2 attributes. </body..you forgot the ">" about the last error , <div id="entire-page"> <div id="top-section"> <div id="logo"> <div id="sidebar"> you have 4 <div> and only 3 </div> ..a closing div tag been omitted..u just need to add it in the right place.
  2. I believe you need a closing tag </a> for the alt, however; not sure about the div. I had the same problem when validating one of my html documents and this was the problem concerning the 'alt' http://www.w3schools.com/
Powered by Yahoo! Answers