|
Posted by Barbara de Zoete on 04/16/06 16:05
On Sun, 16 Apr 2006 14:58:54 +0200, Martin Jay <martin@spam-free.org.uk>
wrote:
>> As I'm just learning CSS I'm still learning all the tags. By the way,
>> when
>> you say elements are these things like "footer, header, etc?"
>
> Yes. Something like:
>
> .footer{
> border: 1px Red Solid;
> }
[ ... ]
> You can also do the same with HTML tags. For example:
>
> p{
> border: 1px Red Solid;
> }
>
You're confusing elements with which you markup a page, and selectors you
use in your stylesheets. [.footer] Is a selector. A class selector to be
more specific, as #footer would be a selector for an id. p Is just a
selector, in this case to make the styles applicable on all parageraph
elements in a html page. Those paragraph elements you mark up with tags
like <p>In here you can put the text for a paragraph.</p>.
Selectors, elements, tags. Different things and because creating pages and
layout quite technical, it is a good thing to use these names correctly.
--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
[Back to original message]
|