You are here: Re: CSS Newbie « HTML « IT news, forums, messages
Re: CSS Newbie

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 |

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация