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 8597065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:49:43+00:00 2026-06-12T00:49:43+00:00

You will see many sites with the following type of code: Script elements: <script

  • 0

You will see many sites with the following type of code:

Script elements:

<script type="text/javascript">
   //javascript here
</script>

Link elements:

<link rel="stylesheet" href="url.css" type="text/css" media="all" />

Style elements:

<style type="text/css">
   /* CSS */
</style>

My question is this:

Are the type attributes needed in the popular browsers today?

(Popular meaning IE 8+, Firefox, Webkit, Opera and Chrome)

What happens if you do not include them?

Note: The answer needs to cover both HTML5 and XHTML doctypes if there is a difference in behavior between the two.

  • 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-06-12T00:49:45+00:00Added an answer on June 12, 2026 at 12:49 am

    In short, they are not required since HTML5, but are required by W3C standards in HTML4/XHTML.


    In HTML5 type of script tag:

    type – This attribute identifies the scripting language of code embedded
    within a script element or referenced via the element’s src attribute.
    This is specified as a MIME type; examples of supported MIME types
    include text/javascript, text/ecmascript, application/javascript, and
    application/ecmascript. If this attribute is absent, the script is
    treated as JavaScript.

    in HTML4 and XHTML it’s required by W3C standards.

    For style and link type:

    In HTML5, the type attribute is no longer required. Default value is
    “text/css”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I see on many sites that the enter key will submit a form but
In many programming languages there is the basic equals operator which will see if
If you look at my document here: http://featuredfotografer.com/ you will see that there is
It might be a long shot posting this question here but we will see.
After running the following SQL statements, you will see that, MySQL has automatically created
I am very new to C++ programming and you will see why. I want
If you go to http://moederdagontbijtplacemat.nl/ you will see a progress bar. The application is
When you open up the page while it's loading you will see menu coming
http://dl.dropbox.com/u/13722201/Dorset%20Designs/index.html As you will see when you resize the browser everything does centralise until
If you go to http://www.wilwaldon.com/learning/inner4a.html with IE7 you will see the middle 2 columns

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.