Home
CSS
CSS Web Fonts
Tryit: The font-face rule
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> @font-face { font-family: myFirstFont; src: url(sansation_light.woff); } * { font-family: myFirstFont; } </style> </head> <body> <h1>The @font-face Rule</h1> <div> With CSS, websites can use fonts other than the pre-selected "web-safe" fonts. </div> </body> </html>