I have a lot of divs with attributes and values.
My question is can I target these divs using CSS for styling purposes?
That way I can create CSS classes for styling and have javascript for adding functionality on the page. Otherwise I need to create CSS classes and attributes individually.
An additional point - I'm doing this so that the site degrades gracefully. So when javascript is not available, the styling is not affected. At the same time javascript, when present, can provide for a richer experience.