Possible Duplicate:
style type="text/css" … what else is there?
I see that when defining a css section it’s always
<style type="text/css">
</style>
Is there anything else it could be? Just curious.
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.
HTML 4 and 5 leave open the possibility of other types, but do not specify any besides “text/css”. In practice, I have never encountered a case where anything but “text/css” is used. For this reason, the HTML5 specification made the type attribute optional. If it is omitted, the default type “text/css” is used. See the style tag specification for details:
In HTML 4 documents, the type attribute must be specified. The specification does not limit the values that can be used:
In old versions of HTML (<= 4) the type attribute appears to be an attempt to maintain compatibility with the
<link>method of importing stylesheets, where thetypeis required: