Notes
The HTML style
attribute is used to add styles to an element, such as color, font, size, and more.
<!DOCTYPE html>
<html>
<body>
<p>Text with no style</p>
<p style="color:red;">Red Text</p>
<p style="color:blue;">Blue Text</p>
<p style="font-size:20px;">Big Text</p>
<p style="font-size:8px;">Small Text</p>
</body>
</html>
Output:
Text with no style
Red Text
Blue Text
Big Text
Small Text
The HTML style
attribute is:
<tagname style="property:value;">Content</tagname>