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 BackgroundsCSS BackgroundsCSS background properties are used to add background effects for elementsWe will learn below following CSS background properties:backgr… Read More
  • CSS Padding CSS works on a box model structure, where elements are packed according to the sequence of the imageThe padding property defines the space betwe… 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 BordersBorder property helps in creating borders around the textCSS border properties allow you to specify the style, width, and color of an element's border… Read More
  • CSS Margin CSS MarginsMargins are used to create space around elements, outside of any defined bordersWith CSS, you have full control over the margins. The… Read More

0 Comments:

Post a Comment

Do leave your comments