I'm making a flask application and just stuffed it all into a Visual Studio pyproj file and am just reviewing all the edit suggestions the IDE is proposing. One of them is where I put the <script>
tag in the html. The code worked as the browser is very forgiving I know with html, but what exactly did I unwittingly violate?
It should be inside body
tag. So move one line up.
Looks like it's a simple matter of malformatted html, by standard/design I'm guessing. According to https://www.w3schools.com/js/js_whereto.asp ...
JavaScript in <head> or <body>
You can place any number of scripts in an HTML document.
Scripts can be placed in the <body>, or in the <head> section of an HTML page, or in both.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With