Introduction To CSs

Introduction To Css



Why Css is Used?

Css is used to design html files.IT is used  to alter the font, color, size, and spacing of your content, split it into multiple columns, or add split it into multiple columns, or add animations and other decorative features.

Types OF CSS
There are types of CSS
  • Inline Css
  • Internal Css
  • External Css
Inline css is used inside the tag like this 
<p style="color:red;">First Inline Css</p>

First Inline Css

Internal Css

Internal Css is Used inside head in html file like this type <style><style> in head and select the tag 
which you want to design and add the property like for color use color:red; 


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style type="text/css">
p{
color: red;
}

</style>

</head>
<body>
<p> Internal Css</p>

</body>
</html>

External Css

External css is used by linking another page of Css like html for creating 
Css file Type style.css and save


Now you have to link your html file with Css file like this
<link rel="stylesheet" href="style.css">

IN Css Select the tag type the property like this
Css Will appear in Folder Like this







No comments

Powered by Blogger.