Cascading Style Sheets, fondly referred to as CSS, is a
simple design language intended to simplify the process of making web pages
presentable.CSS handles the look and feel part of a web page. Using CSS, you can control
the color of the text, the style of fonts, the spacing
between paragraphs, how columns are sized and laid out, what background images
or colors are used, as well as a variety of other effects
A style
rule is made of three parts:
·Selector:A
selector is an HTML tag at which a style will be applied. This could be any tag
like <h1> or <table> etc.
·Property: A property is a type of attribute of HTML tag. Put simply, all the HTML
attributes are converted into CSS properties. They could be color,border,etc.
·Value
:Values are assigned to properties. For example,color property can have the value
either red or #F1F1F1 etc
You can put CSS Style Rule Syntax as follows:
selector
{property:value}
ex-
table{border:1px
solid #C00; }
The Type Selectors
1- table{border:1px solid
#C00; }
2- ul em{color:#000000;}
No comments:
Post a Comment
Please write your view and suggestion....