คุณสมบัติ font-style
คุณสมบัติ font-style ใช้ทำให้ฟอนต์เป็นตัวเอียง (italic) หรือตัวเงียง (oblique) ลองรันโค้ดต่อไปนี้เพื่อกำหนดคุณสมบัติ font-style:
<html>
<head>
</head>
<body>
<p style="font-style:italic;">
This text will be rendered in italic style </p>
</body>
</html>
ค่าที่ใช้ได้:
- normal - ปกติ (ค่าเริ่มต้น)
- italic - ใช้ glyph ตัวเอียงจริงของฟอนต์
- oblique - เงียง glyph ปกติ (สร้างขึ้นด้วยการเงียง)
ความแตกต่าง: italic สวยกว่าและอ่านง่ายกว่า oblique สำหรับฟอนต์ที่มี italic จริง