210k views
3 votes
What is a valid value of the type attribute used in the script tag of HTML code?

A: "Text"

B: "Javascript"

C: "Text/Javascript"

D: "Text-Javascript"



This is very hard, and I would so so so appreciate it, if someone could help me. This is the only question they don't have notes for. I have literally searched high and low for something that could help me, but no, nothing.

2 Answers

3 votes

Answer:

C

Step-by-step explanation:

User Omer Mor
by
7.0k points
7 votes
It is C, text/javascript. It's a mandatory attribute in HTML4, but in HTML5 it is optional (text/javascript is the default). It is the first thing that comes up if you google "script tag", where did you look? ;-)
User Sami Koivu
by
7.0k points