We can use an internal stylesheet in the section of a document or we can also write it inside the tag. We have to write all of our CSS code inside the style tag.
tag. For example-
<h1>This is a heading with blue color.</h1>
<p>This is a paragraph with red color.</p>
We can also use the CSS code inside an element. For example
<p style="color: green;">This is a paragraph with red color.</p>
But this is not recommended as we have to use this in each element to style it. So we can use internal or external method. It is very helpful whenever we have to change a style of an element dynamically.