Introduction to CSS

So basically, CSS is incorporated in html.

it has predefined tags, like, it basically knows what the body tag is.

so if you do

body{
 background: black;
}

It will make the background black. Of course the syntax is

<style type=”text/css”>
body{

}

table{

}

</style>

Technically any html tag can be completely customized. So, your body automatically becomes black and you dont have to type in the bgcolor attribute.

The basic attributes are:

background: BACKGROUNDCOLORNAMEHERE;
color: TEXTCOLORNAMEHERE;
font-family: FONTNAMEHERE;
border: double/dotted COLOR NAME;
font-size: FONTSIZEHERE; eg 12pt;
padding: 4px 4px 4px 75px; (Just use this, it’s generally the best dimensions);

These are a few of the basic attributes that can be used for each of the tags.

Next post (which will be in a while) will be related to division tags <div> (V V IMPORTANT)

 

Advertisements
Categories: Uncategorized | Leave a comment

Post navigation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: