PNLdev
Tutorial
Front-end
HTML
reference
CSS
reference
JavaScript
reference
En
English
فارسی
En
English
فارسی
Tutorial
Front-end
HTML
reference
CSS
reference
JavaScript
reference
Run
<!DOCTYPE html> <html> <head> <style> p.a { font: 18px Arial, sans-serif; } p.b { font: italic small-caps bold 15px/25px Georgia, serif; } </style> </head> <body> <h1>font property example</h1> <p class="a">This is a paragraph. The font size is set to 18 pixels, and the font family is Arial.</p> <p class="b">This is a paragraph. The font is set to italic and bold, with small-caps (all lowercase letters are converted to uppercase). The font size is set to 15 pixels, the line height is set to 25 pixels, and the font family is Georgia.</p> </body> </html>