Home
CSS
CSS Web Fonts
Tryit: Add bold 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-face { font-family: myFirstFont; src: url(sansation_bold.woff); font-weight: bold; } * { font-family: myFirstFont; } </style> </head> <body> <h1>The @font-face Rule</h1> <div> With CSS, websites can use <b>fonts other than the pre-selected "web-safe" fonts</b>. </div> </body> </html>