It's not necessary, but i have tried to select <script>
tag in css. But it didn't work. Why ?
<style>
script {
padding:80px;
background-color:red;
}
</style>
This should work. Because it works on other elements. But not on script tag .
<script>alert(1)</script>
And this is the tag i want to select.
You forgot to set display
property:
script{
display:block;
padding:80px;
background-color:red;
}
<script>console.log(1)</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With