CSS is used to style a web page. To make the web page attractive, we use css. Three types of css is used.
Inline CSS( Type1)
Inline css is used in a html element. Here is the use of inline css <p style="color:red; font-size:20px; text-decoration:underline"></p> Inline the html element, these are the css properties.
Internal css is used a head section of a web page. <html> <head> <style> <p style="color:red; font-size:20px;"></p> </style> </head> </html> Thus internal css is used inside the head section between <style></style>
External css is css file with .css extension like style.css External css is lined on a page in head section like: <html> <head> <link href="style.css" rel="stylesheet"> </head> </html> Here we have a style.css file which is linked in head section. In href, we give the path of a file.