Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

HELP ME SEE WHAT IS WRONG WITH MY HTML CODING Crystal Clear Opticals

Crystal Clear Opticals

Visionary Eyewear for 50 Years





Let our ey

OpenStudy (anonymous):

Would be good if you specify the problem you are facing. Looking at it I can see that not all the tag have a match (is very good to always have a close element when you put an open element)(element like UL or HTML or LI). Last but not least, it need indentation.

OpenStudy (rsmith6559):

This looks like HTML3, which besides being outdated, is a mess (how things are done, not you). We no longer use uppercase tags, only lowercase. That's mandatory in XHTML.. The FONT tags have been deprecated (discouraged) since HTML3. CSS (Cascading Style Sheets) are now the preferred way to set style attributes. Because the code is cut off, can't really troubleshoot much more. What you have is balanced ( open and close tags ). The </a> tag after "Contact Us" has a space between the slash and the a. I don't know if that will break the tag or not.

OpenStudy (anonymous):

i am having a problem getting my image to come up

OpenStudy (rsmith6559):

The way that that img tag is written, there should be a folder named images in the same directory as this page, and the image file should be in that folder and should be named EXACTLY (case sensitive) the same as what's in the tag. If the above is true, the permissions on either the folder or the file aren't set to allow everyone read access to the files. The webserver's error_log will show 403 errors in this case.

OpenStudy (anonymous):

o so i save the image name the same as the coding??

OpenStudy (rsmith6559):

I'd adjust the code to the filename, but basically yes, with a caveat. What you've written isn't just a filename but a relative path. It's relative to the location of the HTML file. Because the path starts with "images", the webserver will start at the directory that the html file is in. There needs to be an images folder in that directory. Then the webserver will descend into the images folder and look for a file named "eyeglasses.jpg" (case sensitive) to transfer/serve to the client. If the src had been "/images/eyeglasses.jpg" ( note the starting / ) then the webserver would look at the top level of the website for a directory name images. This comes into play in larger sites, so you should learn these details. Some of my websites have up to 6 or 7 directory levels after the path to the DOCUMENT_ROOT (where on the filesystem the VirtualHost (the website) is located ). The DOCUMENT_ROOT is more for webmasters/system administrators, but you should be aware of it.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!