Cascading Style Sheets
- Styles define how to display HTML elements
- Styles were added to HTML 4.0 to solve a problem
- External Style Sheets can save a lot of work
- External Style Sheets are stored in CSS files
Development of large web sites where fonts and color information were added to every single page became a long and expensive process because of repetitive inserstion of required tags.
World Wide Web Consortium (W3C) created CSS to solve this problem...
CSS SYNTAX:
A CSS rule has two main parts: a selector, and one or more declarations.Each declaration consists of a property and a value.The property is the style attribute you want to change. Each property has a value.
/* Commnets */
H1
{
color:blue;
text-align:left;
}
No comments:
Post a Comment