Ad Code

Cascading Style Sheets -css

Advertisements

What is CSS?

CSS (Cascading Style Sheets) is a style sheet language used for describing the look and formatting of a document written in a markup language.CSS is a style sheets language that defines layout of HTML documents. For example, CSS covers fonts,size,heading,positioning,position property, colours, margins, lines, height, width, background images, advanced positions and many other things. 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(.css).CSS (Cascading Style Sheets) Developed by-Hakon Wium Lie,Bert Bos,World Wide Web Consortium.
CSS Sentex:
CSS
Syntax of CSS Structure

Note:
  • CSS rule property are font-family,color and size 
  • Value are Arial,verdana (font's name),green (color's name) and 20pt(font size)
  • Each declaration includes a property name and a value, separated by a colon(:).

CSS comment:

CSS declaration always ends with a semicolon(;), and declaration groups are surrounded by curly braces:

h1,h2{background:blue}
or
h1,h2{font-weight:bolder;backrround:skyblue;color:red;text-align:center}
Download Link
Advertisements