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 .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.

How to add CSS in HTML?

  • We can add CSS in three ways: Inline CSS, Internal CSS, and External CSS

  • Inline CSS written in the opening tag of HTML element by using the style attribute.

  • Internal CSS is written in the head tag of HTML by using style tag.

  • External CSS is written in the external file with .css extension.

Introduction to CSS Part-1 PDF

Post a Comment

* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Top Post Ad

Below Post Ad

Ads Section