Is it possible to use the noscript element in CSS selectors?
noscript p { font-weight: bold; }
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes! You can definitely do that.
In fact, many (
all?) browsers support targeting any arbitrary tag using CSS. ‘Official’ tags in the HTML spec only define what a browser should do with them. But CSS is a language that targets any flavor of XML, so you can sayfoo {font-weight:bold;}and in most browsers,<foo> hello world </foo>will come out bold.As Darko Z clarifies, IE6/7 do not add arbitrary (non-standard) elements to the DOM automatically from the source; they have to be programmatically added.