What is Css?

  • CSS stands for Cascading Style Sheets
  • CSS describes how HTML elements are to be displayed on screen, paper, or in other media
  • CSS saves a lot of work. It can control the layout of multiple web pages all at once
  • External stylesheets are stored in CSS files
  • Why we use Css?

    CSS is used to style our web page, including designs, animations etc...


    Selector is the html element which u want to style

    The declaration block contains one or more declarations separated by semicolons

    Each declaration includes a CSS property name and a value, separated by a colon

    Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces

    Three ways to insert Css

  • External Css
  • Inline Css
  • Internal Css
  • How to create a css file?

    Step 1: Create a new folder in your desktop

    Step 2: Open Vishual Studio Code and create a new .html file and code this, You should always link the html file and the css file by the link tag which is given below


    Step 3: Open Vishual Studio Code and create a new .css file and code this:


  • Output:



  • Videos to learn CSS





    More codes are coming