Is there no difference between No media and media=”all”?
<link rel="stylesheet" type="text/css" media="all" href="style.css">
and
<link rel="stylesheet" type="text/css" href="style.css">
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.
In HTML 4.01, the default value is
screen.In HTML5, the default value has been changed to
all.Therefore, it depends on the doctype declaration you use in your page.Never mind, user agents get confused about standards anyway; see Knu’s comment. (I bet this is why they changed it toallin HTML5.)Then again, this only really matters if you’re supporting user agents that don’t present pages on digital screens, or display any visual information for that matter.