Html
HTML
notes
- for purposes of responsive web design source:
for faster loading
use CDNs whenever possible
- use unpkg for loading ANYTHING from npm
always put CSS in head
put javascript <script></script> either at the bottom of the body or above with css
js in head
- pros
- guarantees they will be available before content shows
- cons
js below body
- pros
- script executes after loading the content, so user doesn't have to wait for heavy js to load first
- cons
- if some buttons require js, before the content is loaded the user can click on the buttons and nothing will happen (not reacting, looks like its broken)
things above html
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">