HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> body{ color: green; } p{ color: blue; } h1, h2{ color: black; } p:nth-child(3){ all: none; } p:nth-child(5){ all: initial; } p:nth-child(7){ all: inherit; } p:nth-child(9){ all: unset; } </style> </head> <body> <h1>CSS all Property</h1> <h2>all: none;</h2> <p>This is a paragraph.</p> <h2>all: initial;</h2> <p>This is a paragraph.</p> <h2>all: inherit;</h2> <p>This is a paragraph.</p> <h2>all: unset;</h2> <p>This is a paragraph.</p> </body> </html>
OUTPUT
×

Save as Private