First, JavaScript introduction
1.JavaScript is the most popular scripting language on the Internet, which can be used in Web and HTML, and can be widely used in servers, PC-side, and mobile.
2.JavaScript scripting language: JavaScript is a lightweight programming language. JavaScript is a programmatic code that can be inserted into an HTML page. When JavaScript is inserted into an HTML page, it can be performed by all browsers.
Second, JavaScript implementation
1.JavaScript usage: Scripts in HTML must be located between the <script></script> tags. The script can be placed in the <body> and
2.JavaScript Tags: insert JavaScript in HTML, using <script> tags. Write code between <script></script>
3.JavaScript usage Restrictions: In HTML, the number of scripts is not limited. Scripts are usually placed in the
4. Code Demo
<! DOCTYPE html>
<! DOCTYPE html>
<! DOCTYPE html>
<! DOCTYPE html>
Third, JavaScript output
1.JavaScript is typically used to manipulate HTML
2. Document output: document.write ("<p>this is my first javascript</p>");
3. Example
<! DOCTYPE html>
<! DOCTYPE html>
Basic JavaScript Tutorial (i)