คุณสมบัติ font-style
เพื่อกำหนดสไตล์ฟอนต์ ให้ใช้คุณสมบัติ font-style ตั้งค่าฟอนต์เป็น italic, normal และ oblique
ตัวอย่าง
ลองรันโค้ดต่อไปนี้เพื่อกำหนด font-style เป็น italic ด้วย CSS:
<html>
<head>
</head>
<body>
<p style="font-style:italic;">
Europe, Australia, South America are continents. </p>
</body>
</html>
ค่าที่ใช้ได้:
- normal - ปกติ (ค่าเริ่มต้น)
- italic - ตัวเอียงจริงของฟอนต์
- oblique - ตัวเงียง (slanted)