Help - Search - Members - Calendar
Full Version: css and html code cleaner
HTMLHelp Forums > Web Authoring > General Web Design
earthshaker
I got the page I was working on yesterday validated by w3c css, came out no errors, the HTML part is also error free. now the wdg validation was not as good, some characters not allowed errors, or the line must start with a-z A-Z or 0-9. not big deal, fact is I tried to clean up the errors in the css, things like this #header{ and the like by removing the # character, error city.
Any way to my point is there a software that will look at the css and the html, and output a report of things that aren't needed or used?
The kind of elements/attributes that don't really hurt anything but just aren't necessary.
Christian J
QUOTE(earthshaker @ Dec 8 2008, 01:56 PM) *

I got the page I was working on yesterday validated by w3c css, came out no errors, the HTML part is also error free. now the wdg validation was not as good

The WDG and W3C HTML validators shouldn't give different results. But I recall the WDG CSS lint doesn't support all things new for CSS2, though.
QUOTE

some characters not allowed errors, or the line must start with a-z A-Z or 0-9. not big deal

It could be a big deal. Can you post the URL to the page?

QUOTE
fact is I tried to clean up the errors in the css, things like this #header{ and the like by removing the # character

If "#header" is an ID selector it needs the "#", otherwise it refers to a "header" element (and these don't exist). Why remove the "#"?

QUOTE
Any way to my point is there a software that will look at the css and the html, and output a report of things that aren't needed or used?
The kind of elements/attributes that don't really hurt anything but just aren't necessary.

Are these elements and attributes generated by some WYSIWYG program?
earthshaker
[quote][quote name='Christian J' post='31637' date='Dec 8 2008, 10:52 AM']
[quote name='earthshaker' post='31633' date='Dec 8 2008, 01:56 PM']
I got the page I was working on yesterday validated by w3c css, came out no errors, the HTML part is also error free. now the wdg validation was not as good

The WDG and W3C HTML validators shouldn't give different results. But I recall the WDG CSS lint doesn't support all things new for CSS2, though. [/quote]

[quote]some characters not allowed errors, or the line must start with a-z A-Z or 0-9. not big deal
It could be a big deal. Can you post the URL to the page?
[/quote]

No I can't it is still on my machine

[quote] fact is I tried to clean up the errors in the css, things like this #header{ and the like by removing the # character

If "#header" is an ID selector it needs the "#", otherwise it refers to a "header" element (and these don't exist). Why remove the "#"?[/quote]

Don't know, just the fact is didn't start with the correct characters.

[quote][quote]Any way to my point is there a software that will look at the css and the html, and output a report of things that aren't needed or used?
The kind of elements/attributes that don't really hurt anything but just aren't necessary.
Are these elements and attributes generated by some WYSIWYG program?
[/quote][/quote]

No I used a template for a starter and adjusted it to my needs as a learning exercise.
I used HTML-KIT and compared what I had, in the trial of Coffee-cup

Good luck decoding my reply I am not real good at multi-quoting.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.