Why we import CSS & JavaScript files in HTML like this ?

Fig. starting template of HTML
Fig. starting template of HTML
Fig. Updated template of HTML
Inline CSS
Fig. Inline JS
JS inside script tag
Fig. JS inside script tag
External JavaScript
Fig. External JS
CSS at the end
Fig. CSS at the end
JS in Meta tag
Fig. JS in Meta tag

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store