Để bỏ gạch chân liên kết trong HTML, dùng thuộc tính CSS text-decoration: none;. Dùng nó với thuộc tính style. style chỉ định kiểu nội tuyến cho phần tử.
Lưu ý: style ghi đè kiểu toàn cục (trong <style> hoặc file CSS bên ngoài).

Ví dụ
Chạy mã sau để bỏ gạch chân liên kết trong HTML:
<!DOCTYPE html> <html> <head> <title>HTML Text Decoration</title> </head> <body> <h2>About</h2> <p> Our <a href="/about/about_team.htm" style="text-decoration: none;">Team</a> comprises of programmers, writers, and analysts. </p> </body> </html>