Css - How it works

CSS styles are defined within the tag.


If you define the styles embedded within your current document you will find code similar to the following in your head content:



<style type="text/css">
<!--—z
.bluetext {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; color: #000066;text-decoration: none;} --> Example of Class style:- apply using class property for any tag <p class="bluetext">
.h1 {specifications} -> Example of Tag style:- for tag <h1>
a:link {specifications} -> Example of pseudo-class Advanced style:- applied to all <a> tags without any other style
#NewsBox {specifications} -> Example of ID attribute Advanced style:- applied to the tag whose ID property is set to NewsBox
-->
</style>


To use an external file, you would usually name the file something.css (choose an appropriate name), and then use the LINK tag to tell the page to use it. Inside the head of a document put this:


<link rel="stylesheet" type="text/css" href="something.css">

0 comments

Make A Comment

Have You Forgotten How Good Webdesign Tastes?

Enter a word for your own slogan:

Generated by the Advertising Slogan Generator. Get more Webdesign slogans.

  • Test your Response time!

    Click on "Start" first, and wait until the background color changes. As soon as it changes, hit "stop!"
top