user310291
user310291

Reputation: 38190

emmet for script <script type="text/javascript">

I can't find any emmet for

<script type="text/javascript"> 

is this omitted by emmet ? I can't find on google either.

Upvotes: 0

Views: 1275

Answers (1)

Mark
Mark

Reputation: 181060

probably because of this from MDN:

Omitted or a JavaScript MIME type: This indicates the script is JavaScript. The HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script

If you really want it you could make an emmet snippet ala

"script:type": "<script type=\"text/javascript\"></script>"

For the details on how to do that, see Link+tab shortcut Emmet on VSCode - How can I get the "type" to be included in this?

Upvotes: 1

Related Questions