Home
HTML
HTML CSS
Example 5: HTML CSS
Run ❯❯
<!DOCTYPE html> <html> <head> <title>Change Font, Size and Color Example</title> <style> body {background-color: #e9e4e6;} h1 {font-family:Verdana; font-size:16px; color: magenta;} p {font-family:Verdana; font-size:14px; color: blue;} </style> </head> <body> <h1>Change Font, Size and Color Example</h1> <p>This is a paragraph whose font has been set to Verdana. The size of the font is 14px and color is blue. Here we have used internal CSS.</p> </body> </html>