March 4, 200917 yr Hey everyone, i am using css and html to hand code my sites, as this is the method that i prefer. I am trying my best to keep the code clean and neat and tidy, however when i run it through the validator, i am presented with about 6 errors that i just cannot understand. Does running your html and css coding through html tidy editors and css tidy editors make sure that your code will validate. If not how can you correct errors when you are not sure what they are or why they have occured. I was reading that some css tidy edotors will remove comment tags, which is quite frustrating as these are useful and make it easy to find content in your documents. Any help very much appreciated.
March 4, 200917 yr if you site is online you could post the link in here and someone can explain the errors for you, that way you will know where you are going wrong and also how to correct it in the future as well. If it isn't online then maybe post the code
March 4, 200917 yr Post up the errors it's giving you and/or the relelvant code. The w3c validator is a pain at first, because the errors don't tell you much unless you know what's wrong. After a while you get used to the errors and you know what each one relates too and how to fix it, but for a while, it's not so easy. Stick at it, it gets easier. If you can post the errors/code we can help you work it out.
March 4, 200917 yr It's often disheartening when the validator comes back with loads of errors. However, the first error on the list usually causes a knock-on e.g. if you miss a closing tag - so always fix the errors at the top of the list first. I always run my pages through the validator before publishing
March 4, 200917 yr Author Cheers guys, i am actually going to put the site up tonight so i will post the link. I just used one of my first sites, as i am at work and i am not too concerned if this does not validate, i am much more concerned about the one that i am uploadng tonight. Do all errors have to be corrected manually or is there a program that will remidate them for you. Will Java Script validate properly as i have used this in one of my pages. Thanks for your help.
March 4, 200917 yr IF you've got js in the page, you need to use cdata tags <![CDATA[ JS CODE HERE ]]> that just tells the parser that it's character data, you only have wrap js in it when your using selectors and bit's like that which could be misconstrued has html code (is that the appropriate word to use? 'misconstrued' ?). HTML TIDY can clean up warnings, but not errors i don't think. It's not too difficult to do manually if you know what the errors mean, but they're hardly well written errors.
Create an account or sign in to comment