0

Where is the language attribute used?

<html> <head> <title></title> <script type="text/javascript"> alert("This is an alert box!"); </script> </head> <body> </body> </html> During explanation,the language attribute was used but in the example,only the type attribute is used.Why?

25th Aug 2017, 5:51 AM
Adrija Ray Chaudhuri
Adrija Ray Chaudhuri - avatar
1 Odpowiedź
+ 13
Basically The lang attribute specifies the language of the element's content. Common examples are "en" for English, "es" for Spanish, "fr" for French, and so on. whereas the type attribute defines the type of script.
25th Aug 2017, 6:29 AM
P R
P R - avatar