1
I’m studying Boostrap 4 and in one of the classes when setting up a carousel
I noticed with the addition of type="text/javascript"
to my <script>
, the doubt is as follows, what is the function of passing this type and there is some advantage in that ?
Because even passing parameter the code responds the same way.
For example:
<!-- Com type -->
<script type="text/javascript">
$('.carousel').carousel({
interval:1000
})
</script>
<!-- Sem Type -->
<script>
$('.carousel').carousel({
interval:1000
})
</script>