HTML colors are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values.
Background Color:
we can set background color in HTML.
<h1 style="background-color:blue;">Learnsimpli</h1> <p style="background-color:red;">Learnsimpli ia online free tutorial website, you will get all courses to learn free of cost with detailed explanation and notes, you can learn any time, anywhere.</p>
Text Color: Text color can be set in HTML.
<h1 style="color:Tomato;">Learnsimpli</h1> <p style="color:DodgerBlue;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p> <p style="color:MediumSeaGreen;">Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
Border color:
<h1 style="border:2px red;">Learnsimpli</h1> <h1 style="border:2px blue;">Learnsimpli</h1> <h1 style="border:2px violet;">Learnsimpli</h1>
One thought on “HTML COLORS”
Comments are closed.