What is the purpose of holding whatever tag you create in the attribute type?

What is the purpose of holding whatever tag you create in the attribute type? Correct Answer To identify the scripting language

A variable is created to hold whatever tag you create, and then branch the logic based on the value of type, which identifies it’s for JavaScript or for CSS. Hence, the attribute acts as an identifier to the tag.

Related Questions

What is the purpose of using the async attribute in the script tag?
Which attribute you’ll use with TD tag to merge two cells horizontally?