Thursday, March 26, 2009

How to Change the Colors on Your Webpage?




1.I'm going to open up the page I wrote for my previous article. You go ahead and open up the page you want to edit.
2.We are going to be using CSS (Cascading Style Sheets) This is a language developed specifically for changing the way a page looks. It is possible to do this with HTML as well, but it is not recommended. (Other web designers will laugh at you)
3.Add the code as shown in the image. You can change the color green with whatever color you wish. Note, however, that not every color name will be recognized by the browser reading it. Defining exact colors is a bit more complex, and will probably be covered in a later





4.Save your file and open it, the background should now be green.
Now add the code I have in the image shown. We're not done yet.




5.Now add the code in the image shown. Save and refresh the page, the text in that paragraph tag should appear red. I guess I'm going for some kind of Christmas theme.


6.Well you're done! Let's look at what the code means

No comments: