Quote:
Originally Posted by BigJohnny
I'm also kind of lost with the whole difference between classes and id's and using the # or .
|
Use a <tag id="identifier"> where tag is any appropriate HTML tag, when the style will only be applied once on the page.
The id tag may be used to refer to CSS #identifier {style: style;}
You may also reference a subsection of a page from another page by using a link pointing to an id: index.html#identifier
On index.html:
<h2 id="identifier">
This title will come up at the top your screen
</h2>
You may do both at once. Point to the id from another page and reference the css.
A class is used when you want to reference css more than once per page, for example, if you want to use some form of highlighting. Or if you want to style more than one individual paragraph.
|