Sunday, November 6, 2011

HTML Styles - CSS


Styling HTML with CSS

CSS is used to style HTML elements.
CSS was introduced together with HTML 4.
CSS can be added to HTML in the following ways:
  • in separate style sheet files (CSS files)
  • in the style element in the HTML head section
  • in the style attribute in single HTML elements

Using the HTML Style Attribute

It is time consuming and not very practical to style HTML elements using the style attribute.

HTML Style Example - Background Color

The background-color property defines the background color for an element:
Try it Yourself
HTML Style Example - Font, Color and Size
The font-family, color, and font-size properties defines the font, color, and size of the text 
Try it Yourself
HTML Style Example - Text Alignment
The text-align property specifies the horizontal alignment of text in an element:
Try it Yourself

You can learn everything about CSS in W3school's site CSS Tutorial.

0 comments:

¿Te animas a decir algo?

My Headlines

                                                                                                                                                                            Enter Donation Amount:

 Pleas Donate here if you like our  you can Donate by your Alert Pay if don't have already you can create one here

About Me

ajab khan
Hi there!
I'm Ajab Khan,29, Pakistani Citizen living at Lahore, Pakistan. Currently Working at University of the Punjab, Pakistan.
Started blogging since July 14, 2010 I have several blogs and first article was about how to use your mobile as a webcam you can access that article here, I love to collect interesting data if you like to share with me you can contact me by email  here is the id ajabbiz@yahoo.com