<!DOCTYPE html>
<html lang="en"> <head> <style type="text/css"> p.one { border-style: solid; border-color: red; } p.two { border-style: solid; border-color: green; } p.three { border-style: dotted; border-color: blue; } p.four { border-style: dotted; border-color: aqua; } p.five { border-style: dotted; border-color: violet; } </style> </head> <body> <h1 class="fruit" style="color:black" >This is first Heading </h1> <p class="one"> this is an apple and an apple a day keeps doctor away </p> <p class="two"> this is an apple and an apple a day keeps doctor away </p> <p class="three"> this is an apple and an apple a day keeps doctor away </p> <p class="four"> this is an apple and an apple a day keeps doctor away </p> <p class="five"> this is an apple and an apple a day keeps doctor away </p> </body> </html> |
border-color : green voilet yellow blue
/*
green-top,
Violet-right
Yellow - bottom
Blue - left
*/
|
<!DOCTYPE html>
<html> <head> <style> h1{ border-style: solid; border-color: green violet yellow blue; } </style> </head> <body> <h1 class="fruit">This is first Heading</h1> </body> </html> |