# JavaScript lanGuage or lanQuage

**URL:** <https://boards.straightdope.com/t/javascript-language-or-lanquage/135310>\
**Category:** Factual Questions\
**Created:** [November 5, 2002, 3:16am UTC](https://boards.straightdope.com/t/javascript-language-or-lanquage/135310 "2002-11-05T03:16:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![enipla](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@enipla](https://boards.straightdope.com/u/enipla)\
**Post date:** [November 5, 2002, 3:16am UTC](https://boards.straightdope.com/t/javascript-language-or-lanquage/135310/1 "2002-11-05T03:16:28Z")

</div>

Good God -

Does Javascript use a Q instead of a G in the word language?

\<script lanquage=“text/javascript”\> instead of \<script language=“text/javascript”\>

This has cost me a week or two.

My code works with a Q. Dosn’t with a G.

wow and dammit.

:smack: :smack: :smack: :smack: :smack: :smack: :smack:

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [November 5, 2002, 3:42am UTC](https://boards.straightdope.com/t/javascript-language-or-lanquage/135310/2 "2002-11-05T03:42:45Z")

</div>

Doesn’t work with a Q in any universe I know about. The tag you want is

```auto

<script language="javascript">

```

It is not a MIME type, just the word “javascript” (you can also add a version number if you want.)

---

<div class="post-metadata">

**Author:** ![NotMrKnowItAll](https://avatars.discourse-cdn.com/v4/letter/n/6bbea6/32.png) [@NotMrKnowItAll](https://boards.straightdope.com/u/NotMrKnowItAll)\
**Post date:** [November 5, 2002, 3:44am UTC](https://boards.straightdope.com/t/javascript-language-or-lanquage/135310/3 "2002-11-05T03:44:43Z")

</div>

Gee, a whole week!

Try \<script language=“JavaScript”\>

and forget the “text/” bit.

((It’s ignoring “lanquage”))

-David

---

<div class="post-metadata">

**Author:** ![enipla](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@enipla](https://boards.straightdope.com/u/enipla)\
**Post date:** [November 5, 2002, 4:09am UTC](https://boards.straightdope.com/t/javascript-language-or-lanquage/135310/4 "2002-11-05T04:09:18Z")

</div>

Really weird, but it does work with q, instead of g.

Anyway, I will get rid of the text/ part.

…  
Just tried it, did the trick.

So whats up with the text/ part of the ‘language=’ attribute of the \<script\> tag? I see it a lot. Books, tutorials, the works.

Screwed me pretty good too.

Anyways, thanks loads…

😉

---

<div class="post-metadata">

**Author:** ![Achernar](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Achernar](https://boards.straightdope.com/u/Achernar)\
**Post date:** [November 5, 2002, 6:09am UTC](https://boards.straightdope.com/t/javascript-language-or-lanquage/135310/5 "2002-11-05T06:09:13Z")

</div>

Hey! My post didn’t go through!

The _language_ attribute is deprecated, because of confusion just like this. You should use the _type_ attribute instead:

\<script type=“text/javascript”\>

Incidentally, the whole language vs. lanquage issue really has nothing to do with JavaScript. It’s a question of HTML syntax.

---

<div class="post-metadata">

**Author:** ![Achernar](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Achernar](https://boards.straightdope.com/u/Achernar)\
**Post date:** [November 5, 2002, 7:03am UTC](https://boards.straightdope.com/t/javascript-language-or-lanquage/135310/6 "2002-11-05T07:03:54Z")

</div>

Oh, now I see why my post “didn’t” go through. [There’s a duplicate](http://boards.straightdope.com/sdmb/showthread.php?s=&threadid=142683). Very sneaky indeed.

---

<div class="post-metadata">

**Author:** ![enipla](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@enipla](https://boards.straightdope.com/u/enipla)\
**Post date:** [November 5, 2002, 2:11pm UTC](https://boards.straightdope.com/t/javascript-language-or-lanquage/135310/7 "2002-11-05T14:11:50Z")

</div>

> [@](#):
>
> \*Originally posted by Achernar \*  
> \*\*Hey! My post didn’t go through!
> 
> The _language_ attribute is deprecated, because of confusion just like this. You should use the _type_ attribute instead:
> 
> \<script type=“text/javascript”\>
> 
> Incidentally, the whole language vs. lanquage issue really has nothing to do with JavaScript. It’s a question of HTML syntax. \*\*

Yep, I start just using ‘type’. And your right of course, this is an HTML issue, not really Javascript.

And sorry about the duplicate post, don’t know what happend.
