Jump to content

Need Help With Site Validation Errors


sdegan
 Share

Recommended Posts

Hi All,I am learning how to build websites and struggling with some errors that appear when I attemp to validate the following two pages that are the basic pages of my sister's site I am working with:http://www.simonedegan.org/divaniedettagli/en/index.htmlhttp://www.simonedegan.org/divaniedettagli/en/about.htmlI have spent lots of time understanding the errors but without success.Can someone help me to clean up the errors for a successful validation?Many thanks

Edited by sdegan
Link to comment
Share on other sites

1. add a doctype declaration2. separate presentation from markup. In the old days, we put things like height, width, color, background, etc. right inside the element tags. That6 does not work with xhtml, and doesn't work with standards-compliant html. All that stuff gets moved into your CSS stylesheet. In some cases the CSS names for an equivalent attribute are the same, but in other cases different. So don't try to guess. Look at a CSS reference.3. In the other cases, you just need to add alt and id attributes. Just do what the validator says. There's not much to understand.Uh . . . you're using the validator here, right: http://validator.w3.org ?

Link to comment
Share on other sites

1. add a doctype declaration2. separate presentation from markup. In the old days, we put things like height, width, color, background, etc. right inside the element tags. That6 does not work with xhtml, and doesn't work with standards-compliant html. All that stuff gets moved into your CSS stylesheet. In some cases the CSS names for an equivalent attribute are the same, but in other cases different. So don't try to guess. Look at a CSS reference.3. In the other cases, you just need to add alt and id attributes. Just do what the validator says. There's not much to understand.Uh . . . you're using the validator here, right: http://validator.w3.org ?
Thanks,But please bear in mind that I am learning and I do not get everything. So:
  1. OK for the doctype declaration.
  2. I do not understand point 2. How can I move all the stuff into the CSS stylesheet? What does it mean 'look at the CSS reference'?
  3. Can you give me an example on about where to add the 'just need to add alt and id attributes'?
  4. Yes I am using the validator from w3.org.

Again many thanks for helping

Link to comment
Share on other sites

Beautiful pictures on your site, my man. Very beautiful, and the image slider is impressive - the addition of the reflections is very nice.

Link to comment
Share on other sites

Thanks,But please bear in mind that I am learning and I do not get everything. So:
  1. OK for the doctype declaration.
  2. I do not understand point 2. How can I move all the stuff into the CSS stylesheet? What does it mean 'look at the CSS reference'?
  3. Can you give me an example on about where to add the 'just need to add alt and id attributes'?
  4. Yes I am using the validator from w3.org.

Again many thanks for helping

A stylesheet is a separate document, written in CSS, that tells the browser how to display your page:Learn CSS here: http://www.w3schools.com/css/The alt attribute is required on <img> elements. If an image failed to load, or the person is using a text-only browser, or the person is blind and has a text-to-speech browser, the image needs to have some alternate text.id is an attribute used to identify an object. It can be used for Javascript, CSS, or as an anchor node which can be accessed with the <a> element.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...