หน่วย px กับคุณสมบัติ font-size
ใช้หน่วย px เพื่อกำหนดขนาดตัวอักษรแบบคงที่ (fixed size)
ตัวอย่าง
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
font-size: 30px;
}
</style>
</head>
<body>
<h1>This is demo heading</h1>
<p>This is demo text.</p>
</body>
</html>