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?
1 ответ
+ 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.