Basic JavaScript Tutorial (i)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.