Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS @charset rule</title> <style> @charset "UTF-8"; /* CSS Document */ body { background: yellow; } h1 { color: #ff0000; font-size: 24px; } p { color: rgb(0,255,0); font-size: 14px; } </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>