2
Why open only one tag <script>
doesn’t work properly? I know it’s not the same thing as Stylesheets of CSS:
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
But why it is necessary to open and close the tag <script>
, where I don’t report anything inside the tag? Isn’t that wrong? Or is there any situation where I pass some information to tag ?
<script src="assets/js/bootstrap.min.js"></script> // Sucesso
<script src="assets/js/bootstrap.min.js"> // Erro
In cases where all information is present in attributes, as in your example with link, just close the tag with />.
– Ailton Andrade de Oliveira