write a code in HTML with background colour blue front size of the text should be 20 line should be in purple colour second in navy colour and third should be in green colour
Answers
Answered by
3
<!DOCTYPE html><html> <head> <style type="text/css" media="all"> body { background-color: blue; font-size: 20px; } .p1 { color: purple; } .p2 { color: navy; } .p3 { color: green; } </style> </head> <body> <p class="p1">Hello, World!</p> <p class="p2">Hello, World!</p> <p class="p3">Hello, World!</p> </body></html>
Similar questions