Chạy thử Ví dụ Thuộc tính font-size trong CSS

Chạy thử Ví dụ Thuộc tính font-size trong CSS

Chạy thử Ví dụ Thuộc tính font-size trong CSS

Tự code rồi chạy thử... Chạy Thử
<!DOCTYPE html>
<html>
<head>
<title>Chạy thử Ví dụ Thuộc tính font-size trong CSS</title>
<style>
body {font-family: Arial, Helvetica, sans-serif;}
</style>
</head>
<body>

  <h1>Chạy thử Ví dụ Thuộc tính font-size trong CSS</h1>
  
  <p>Dùng để quy định độ lớn nhỏ của văn bản trong phần tử HTML, bạn có thể dùng px, phần trăm, medium, các kiểu về large, các kiểu về small để chọn kích cỡ cho văn bản:</p>
  
  <p style="font-size: 15px;">font-size: 15px;</p>
  
  <p style="font-size: 25px;">font-size: 25px;</p>
  
  <p style="font-size: 150%;">font-size: 150%;</p>
  
  <p style="font-size: large;">font-size: large;</p>
  
  <p style="font-size: larger">font-size: larger</p>
  
  <p style="font-size: x-large">font-size: x-large</p>
  
  <p style="font-size: xx-large">font-size: xx-large</p>
  
  <p style="font-size: medium">font-size: medium</p>
  
  <p style="font-size: small">font-size: small</p>
  
  <p style="font-size: xx-small">font-size: xx-small</p>
  
  <p style="font-size: x-small">font-size: x-small</p>
  
  <p style="font-size: smaller">font-size: smaller</p>
  
</body>
</html>
Chạy thử Ví dụ Thuộc tính font-size trong CSS nằm trong bài viết Thuộc tính font-size trong CSS