Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS @font-face rule</title> <style> @font-face { font-family: "OpenSans"; src: url("/examples/fonts/OpenSans-Regular.eot"); src: url("/examples/fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: normal; font-style: normal; } body { font-family: "OpenSans", Arial, sans-serif; font-size: 1.2em; } </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>