Sử dụng thuộc tính all để đặt lại tất cả các thuộc tính. Đặt all thành initial, inherit hoặc unset.
Ví dụ
Bạn có thể chạy mã sau để triển khai thuộc tính CSS all:
<!DOCTYPE html> <html> <head> <style> html { color: blue; } #demo { background-color: yellow; color: red; all: inherit; } </style> </head> <body> <h2>CSS all property</h2> <div id = "demo">This is demo text.</div> </body> </html>