why is the default value not getting restored?? Am I using it wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why is the default value not getting restored?? Am I using it wrong?

this is my code. https://code.sololearn.com/WcvH0BwACSze This is the code: <!DOCTYPE html> <html> <head> <title>Inline CSS</title> </head> <body> <p style = "color:#009900; font-size:50px; font-style:italic; text-align:center;"> <style> p { all: initial; } </style> GeeksForGeeks</p> </body> </html>

21st May 2019, 12:34 AM
Amod T V
Amod T V - avatar
3 Answers
+ 2
Because inline styles are the last styles that apply (They have more priority to apply).
21st May 2019, 2:47 AM
Rabist
Rabist - avatar
+ 2
it worked thanks
21st May 2019, 3:00 AM
Amod T V
Amod T V - avatar
+ 1
ok
21st May 2019, 2:56 AM
Amod T V
Amod T V - avatar