When should I use a class and when should I use a id?

Patrick Spewing

New Member
When should I use a class and when should I use an id in html for styling my page.Example: \[code\]<h1 class="ClassName">\[/code\] \[code\]<h1 id="IDName">\[/code\]
 
Back
Top