Horje
How to use HTML Inline CSS

An inline CSS is used to apply a unique style to a single HTML element.

An inline CSS uses the style attribute of an HTML element.

The following example sets the text color of the <h1> element to blue, and the text color of the <p> element to red:


Full Example of HTML Inline CSS

The following example sets the text color of the <h1> element to blue, and the text color of the <p> element to red:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1 style="color:blue;">A Blue Heading</h1>

<p style="color:red;">A red paragraph.</p>

</body>
</html>

Output should be:

Full Example of HTML Inline CSS





Category:
Web Tutorial
Sub Category:
HTML CSS
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference