Home  >  Article  >  Web Front-end  >  Some basic questions about JS

Some basic questions about JS

jacklove
jackloveOriginal
2018-05-21 10:21:121554browse

We often encounter some js problems during development and learning. This article will introduce some related js basic issues.

What is the order in which CSS and JS are placed on the web page?

Generally we put the CSS in the head tag and the JS code at the end of the body code.

<!DOCTYPE html><html><head>
  <meta charset="utf-8">
  <title>JS基础</title>
  <style>
    
    /* 这里放css代码 */      
    
  </style></head><body>
  <!-- 这里放HTML代码 -->
    
  <script>



The above is the detailed content of Some basic questions about JS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn