Where to insert JavaScript Libraries and CSS in my HTML code?

前端 未结 4 1226
不思量自难忘°
不思量自难忘° 2021-01-16 00:44

I am little new to web development and when I was searching internet about other topics, I have seen many people has put popular JS Libraries in Different Places of

4条回答
  •  执笔经年
    2021-01-16 01:34

    CSS Sheets go in the < head >. The order of the CSS files matter so libraries should be put in first then you can put in the specific ones you have.

    Javascript links go in the < body > but place them at the very end. That way your HTML content loads first then the JS loads and it will recognize all your selections. It is more efficient to do it this way.

提交回复
热议问题