Inline CSS – using the style attribute inside HTML elements
Inline CSS is used for styling small contexts. It contains the CSS property in the body section attached to the element. The style attribute is used in the relevant tag to use inline styles added.
Example:
<!DOCTYPE html>
<html>
<body style="background-color:white;">
<h1 style="color:red;">A Red Heading</h1>
<p style="color:blue;">A blue paragraph.</p>
</body>
</html>