VOOZH about

URL: https://www.geeksforgeeks.org/css/how-to-apply-inline-css/

⇱ How to apply inline CSS ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to apply inline CSS ?

Last Updated : 9 May, 2023

In this article we will learn how to apply inline CSS, Inline CSS contains the CSS property in the body section attached to the element is known as inline CSS. This kind of style is specified within an HTML tag using the style attribute. It is used to apply a unique style to a single HTML element.

Syntax:

<tag style = " "></tag>

Example 1: Here is the basic example of using inline CSS.

Output:

👁 Image

Example 2: Here is the demonstration of inline CSS.

Output:

👁 Image

Comment