Saturday, October 19, 2013

Filled Under:

How to change the background color

Hey everyone how are you all today
Today we will learn about cascading style sheets (css),just the basics.

What Cascading Style Sheets (CSS) is?

It is a simple procedure for adding style for example fonts, colors, spacing to your Web documents.By using CSS you can change the font color font size,change the background color and do a lot more.

Lets start with the very simple code,in this example we will change the background color of the document.

<html>
<body style="background-color:blue;">

</body>
</html>
So what we did here is very simple,start with the html and body tag.Now as you know that the body tag defines the body of the document so we will write the background color of the document inside the body tag.
style="background-color:yellow;"
Style is used just to define that we are starting to style our web page and then equals to the keyword which is background-color: and after colon you write the name of the color you want in the background.So this is how we gave style to our document and changing the background color of the web page.






0 comments:

Post a Comment