p.a { font: 15px arial, sans-serif; } p.b { font: italic bold 12px/30px Georgia, serif; }
<!DOCTYPE html> <html lang="ko"> <head></head> <body> <p class="a">This is a paragraph. The font size is set to 15 pixels, and the font family is Arial.</p> <p class="b">This is a paragraph. The font is set to italic and bold, the font size is set to 12 pixels, the line height is set to 30 pixels, and the font family is Georgia.</p> </body> </html>