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





Related Articles
HTML CSS HTML CSS
How to use CSS HTML CSS
How to use HTML Inline CSS HTML CSS
How to use HTML Internal CSS HTML CSS
How to use HTML External CSS HTML CSS
How to create HTML CSS Colors, Fonts and Sizes HTML CSS

Single Articles
Full Example of HTML Inline CSS HTML CSS

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


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