[thelist] css class vs id (div or p )

Andrew Maynes andrew at uk-webdeveloper.co.uk
Fri May 10 03:48:00 CDT 2002


when and why would you use either <div> and <p> what are the differences?

Andrew


<p id="title">Main title - style used only once</p>

<p class="subtitle">Subtitle - used continuously throughout the layout</p>


> are there any pros or cons with using classes rather than
> id's in css (eg
> <div class="foo"> or <div id="foo"> ?
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/02





More information about the thelist mailing list