절대 길이 단위는 서로에 대해 고정되어 있습니다. 이 단위는 출력 형식이 이미 알려진 경우에 사용됩니다. 다음은 절대 길이 단위의 일부입니다 -
| Sr.No | 단위 및 설명 |
|---|---|
| 1 | cm 센티미터 |
| 2 | mm 밀리미터 |
| 3 | 안에서 인치(1in =96px =2.54cm) |
| 4 | 픽셀 * 픽셀(1px =1인치의 1/96) |
| 5 | pt 포인트(1pt =1in의 1/72) |
| 6 | PC 파이카 (1pc =12pt) |
예시
<!DOCTYPE html>
<html>
<head>
<style>
.demo {
text-decoration: overline underline;
text-decoration-color: blue;
font-size: 0.3in;
}
</style>
</head>
<body>
<h1>Details</h1>
<p class="demo">Examination Center near ABC College.</p>
<p class="demo2">Exam begins at 9AM.</p>
</body>
</html> 출력

예시
이제 다른 예를 살펴보겠습니다 -
<!DOCTYPE html>
<html>
<head>
<style>
.demo {
font-size: 1cm;
}
.demo2 {
font-size: 5mm;
}
</style>
</head>
<body>
<h1>ICC Rankings</h1>
<p class="demo">ICC Test Rankings released 29th November.</p>
<p class="demo2">ICC ODI Rankings released 30th November.</p>
</body>
</html> 출력
