Home
HTML
HTML CSS
Example 2: HTML CSS
Run ❯❯
<!DOCTYPE html> <html> <head> <title>Inline CSS Example</title> </head> <body> <h1 style="color:magenta;">Inline CSS Example</h1> <p style="color:blue; font-size:14px;">The font color of the paragrah is blue and the size is 14px. This style for the paragraph is set with the style attribute. This is an example of inline CSS.</p> </body> </html>