Update article.md
This commit is contained in:
parent
162280b6d2
commit
304ae1cd03
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ The `<script>` tag contains JavaScript code which is automatically executed when
|
|||
The `<script>` tag has a few attributes that are rarely used nowadays but can still be found in old code:
|
||||
|
||||
The `type` attribute: <code><script <u>type</u>=...></code>
|
||||
: The old HTML standard, HTML4, required a script to have a `type`. Usually it was `type="text/javascript"`. It's not required anymore. Also, the modern HTML standard totally changed the meaning of this attribute. Now, it can be used for JavaScript modules. But that's an advanced topic; we'll talk about modules in another part of the tutorial.
|
||||
: The old HTML standard, HTML4, required a script to have a `type`. Usually it was `type="text/javascript"`. It's not required anymore. Also, the modern HTML standard totally changed the meaning of this attribute. Now, it can be used for JavaScript modules. But that's an advanced topic: we'll talk about modules in another part of the tutorial.
|
||||
|
||||
The `language` attribute: <code><script <u>language</u>=...></code>
|
||||
: This attribute was meant to show the language of the script. This attribute no longer makes sense because JavaScript is the default language. There is no need to use it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue