Wednesday, May 5, 2010

Introduction to CSS Website Design

CSS or Cascading Style Sheets is modern approach to use an internet site . style to develop an online site layout and apply numerous styles for the site in conjunction with HTML code. CSS has been a standard in internet pattern for some time and continues to grow as we can see using the new standards getting produced in CSS3, the latest version of CSS. This implies that it's really worth acquiring to know and really worth acquiring comfy with applying CSS to be able to develop attractive, accessible internet websites.

CSS can be a different type of mark-up from normal HTML in that it won't have tags stored in angle brackets describe how factors of the webpage are displayed. CSS operates according to a set of hierachical rules exactly where the top most element sets a distinct set of behaviour and any components that inherit from that element will have the identical behaviour unless they explicitly override it.

Traditionally, elements describing how the HTML aspects in a webpage really should display had been incorporated inside the usual HTML markup in the webpage but now CSS permits for cleaner web page code and greater excellent internet site design and style by separating out the code employed to describe how the HTML elements need to appear.

We now want to embellish these html tags by including formatting and style information about they ought to look in our CSS code. To begin with we will include our CSS code in our html page inside tags within the head of our html page. Our first example shows how to change the background colour of our webpage to black, set the font variety to arial and set the font size to 12px for our simple page created above. You will see that these values are set inside the "body" tag which is a predefined CSS property which defines how the contents on the tags ought to be displayed. CSS can be utilised to style most html tags.

View Content Source

No comments:

Post a Comment