Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6239519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:24:23+00:00 2026-05-24T11:24:23+00:00

Possible Duplicate: style type="text/css" … what else is there? I see that when defining

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:24:24+00:00Added an answer on May 24, 2026 at 11:24 am

    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:

    The type attribute gives the styling language. If the attribute is
    present, its value must be a valid MIME type that designates a styling
    language. The charset parameter must not be specified. The default
    value for the type attribute, which is used if the attribute is
    absent, is “text/css”. RFC2318

    In HTML 4 documents, the type attribute must be specified. The specification does not limit the values that can be used:

    This attribute specifies the style sheet language of the element’s
    contents and overrides the default style sheet language. The style
    sheet language is specified as a content type (e.g., “text/css”).
    Authors must supply a value for this attribute; there is no default
    value for this attribute.

    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 the type is required:

    <link rel="stylesheet" href="style.css" type="text/css" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How do I get this CSS text-decoration issue to work? I'm using
Possible Duplicate: Change the native confirm/alert alert(hello) Is there anyway to change the style
Possible Duplicate: Why write <script type=“text/javascript”> when the mime type is set by the
Possible Duplicate: Which style of Ruby string quoting do you favour? Is there a
Possible Duplicate: Styling an input type=file button I was trying to style <input type=file>
Possible Duplicate: Declare CSS style outside the “HEAD” element of an “HTML” page ?
Possible Duplicate: Objective-C style formatter I have wrote a program and wonder if there
Possible Duplicate: How can I make a fieldset legend-style background line on heading text?
Possible Duplicate: Why does C# not provide the C++ style ‘friend’ keyword? I'd like
Possible Duplicates: Formatting of if Statements Is there a best coding style for identations

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.