
November 15th, 2012, 12:32 PM
|
|
Contributing User
|
|
Join Date: Jun 2009
Posts: 295
  
Time spent in forums: 3 Days 8 h 37 m 29 sec
Reputation Power: 5
|
|
|
I'd define them kinda like:
DIV is a highlighter.
CLASS is a title/definition
Odd example. You have 15 people. You use your DIV tag to highlight the 1st, 2nd, and 3rd groups of 5 people. Your document now holds 3 open/close DIV tags. Now, within your DIV tags, you define their CLASS. 1st being class="TeamA" and 2nd being class="TeamB". This, within your stylesheet, you can now define TeamA as the Red team, so all text will appear Red. TeamB being Blue team, all text Blue. 3rd class can be class="Audience" and defined as Bold/Italic.
Sorry for the odd example, but just saying DIV selects the area/items you wish to define in a preset manner.
EDIT: This helps you make a single set of definitions with multiple attributes you may use in many instances around your site, without having to duplicate and reassign the attributes per instance.
|