Types of CSS (Cascading Style Sheet) (original) (raw)

Last Updated : 11 Jul, 2025

CSS is used to style and layout web pages, controlling the appearance of HTML elements. It allows developers to create visually appealing designs and ensure a consistent look across a website.

Types of CSS

CSS can be implemented in three different ways:

**1. Inline CSS

Inline CSS involves applying styles directly to individual HTML elements using the style attribute. This method allows for specific styling of elements within the HTML document, overriding any external or internal styles.

**Now, let us understand with the help of the example:

html `

Inline CSS

`

**Output

Inline-CSS

Inline CSS

**2. Internal or Embedded CSS

Internal or Embedded CSS is defined within the HTML document's