ใช้คุณสมบัติ tab-size ใน CSS เพื่อกำหนดความกว้างของตัวอักษรแท็บ คุณสามารถลองรันโค้ดต่อไปนี้เพื่อนำคุณสมบัติ tab-size ไปใช้ได้
ตัวอย่าง
<!DOCTYPE html> <html> <head> <style> #demo { tab-size: 12; } </style> </head> <body> <h1>The tab-size Property</h1> <pre id = "demo"> This is demo text. </pre> </body> </html>