1. Inline CSS: Inline CSS is used to style individual elements. It is added directly to the HTML tag using the style attribute.

Example:

This is a heading

2. Internal/Embedded CSS: Internal/Embedded CSS is used to style the entire HTML document. It is added to the head section of the HTML document.

Example:

h1 {
color: red;
font-size: 20px;
}

3. External CSS: External CSS is used to style multiple HTML documents. It is stored in a separate CSS file and linked to the HTML document.

Example:

Leave a Reply

Your email address will not be published. Required fields are marked *