Introduction to CSS



What is CSS?
  • CSS is a language that we use to style an HTML document.
  • It describes how elements will be displayed.
  • CSS stands for Cascading Style Sheets.
  • CSS files are saved with the .css extension.
  • CSS files can be used in three ways Inline CSS, Internal CSS, and External CSS
why CSS?

  • CSS saves a lot of time and work.
  • Using CSS we can apply to write once and use many times approach.
  • We can easily change the style of multiple elements by changing the style in the stylesheet once.
  • We can create a single stylesheet and can use it on multiple HTML documents.
  • It is used to style the data or content which is displayed on the web browser.

Related Posts:

  • CSS Box Model  In CSS, the term "box model" is used when talking about design and layout.The CSS box model is essentially a box that wraps around every H… Read More
  • CSS Height, Width and Max-widthThe CSS height and width properties are used to set the height and width of an element.The CSS max-width property is used to set the maximum width of … Read More
  • CSS Font CSS FontFont properties are used to add different styles to the fonts.Font properties are used to change the style, size, weight, etc. of the fo… Read More
  • Text PropertyCSS Text ColorThe color property is used to set the color of the text.The color is specified by:a color name - like "red"a HEX value - like "#ff0000"a… Read More
  • CSS Outline CSS OutlineAn outline is a line drawn outside the element's border.CSS has the following outline properties:outline-styleoutline-coloroutline-wi… Read More

0 Comments:

Post a Comment

Do leave your comments