ID's can be applied to many html elements in the same way as classes.

Is there any advantage using ID's instead of classes? Yes and no, depending
on your needs:
http://css.maxdesign.com.au/selectutorial/advanced_idclass.htm

Of course, the aim for all web developers is to use as few classes and id's
as possible on a page - to keep the code clean and lean. One of the few
times when less class actually shows more class, if you know what I mean  :)

Russ



> I also had a look at your examples Russ, I knew you could have ''h1 class''
> but didn't realise you could use "id" that way, thought it was only with
> div. So today I have learnt two things.
> 

*****************************************************
The discussion list for http://webstandardsgroup.org/
***************************************************** 

Reply via email to