Types of CSS

There are three types of CSS.

You can define styles in 3 ways: 
1) Inline
2) Internal
3) External

When you write CSS into your element itself then it is called inline CSS.
Example
<p style=”color:”red”>Hello</p>

When you write CSS in between <style> tag then it is called internal CSS.
Example
<style>
     p {
       color:”red”;
    }
</style>

When you embed an external file into your HTML file then it is called an external file.


Example
<link rel=”stylesheet” href=”PATH OF YOUR CSS FILE”>

Thanks for reading our blog, Hope you are well If you have any issues Please leave your query in the comment box.