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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:52:23+00:00 2026-06-17T07:52:23+00:00

Possible Duplicate: Do you need text/javascript specified in your <script> tags? Do in HTML5,

  • 0

Possible Duplicate:
Do you need text/javascript specified in your <script> tags?

Do in HTML5, the <script> tag need attribute type="text/javascript"?
I mean isn’t it obvious if the <script> tag will be contains javascript?

  • 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-17T07:52:25+00:00Added an answer on June 17, 2026 at 7:52 am

    No, it’s now officially useless.

    The type attribute gives the language of the script or format of the
    data. If the attribute is present, its value must be a valid MIME
    type. The charset parameter must not be specified. The default, which
    is used if the attribute is absent, is “text/javascript”.

    Simply do

    <script src=yourpath.js></script>
    

    (yes, you can omit the quotes too)

    Note that you don’t have to worry about pre-HTML5 browsers, all of them always considered JavaScript to be the default script language.

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

Sidebar

Related Questions

Possible Duplicate: What is my script src URL? I have situation: <script type=text/javascript src=http://server/some.js>
Possible Duplicate: Is type=“text/css” necessary in a <link> tag? Do we need type=text/css for
Possible Duplicate: How to pass text in a textbox to javascript function? I need
Possible Duplicate: Explanation of <script type = text/template> … </script> After starting learning backbone.js
Possible Duplicate: In need of JavaScript Solution for Exporting table to Excel which works
Possible Duplicate: When do I need to specify the JavaScript protocol? for example <body
Possible Duplicate: Regular expression: match all words except I need your help for using
Possible Duplicate: Editing a text file in place through C# I need to replace
Possible Duplicate: Strip HTML from Text JavaScript Is there a way to remove html
Possible Duplicate: JavaScript implementation of Gzip I'm looking for a text (string) compression method

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.