0 Basic Introductory Learning Web Development (HTML5&CSS3) 007<noscript><script>

Source: Internet
Author: User

0.<script>

HTML <script> Tags

Definitions and usages <script> tags are used to define client-side scripting, such as JavaScript.

The script element can contain either a scripting statement or an external script file through the SRC attribute.

The required Type property specifies the MIME type of the script.

Common applications for JavaScript are image manipulation, form validation, and dynamic content updates.

If <script> has both src references and inline content, the SRC reference content is finally displayed, and the inline content is ignored.

Index.html

<script type= "Text/javascript" src= "Hi.js" >document.write ("I love Lao Wang too") </script>

Hi.js

document.write ("I love Lao Wang");

1. Delaying execution of scripts

Using defer

<script type= "Text/javascript" src= "Patch.js" defer></script>

2. Execute Scripts asynchronously

Using async

3.<noscript>

HTML <noscript> Tags

Definition and usage

The NoScript element is used to define alternative content (text) when the script is not executed.

This tag can be used for browsers that recognize <script> tags but cannot support scripts in them.

Note: If the browser supports scripting, it does not display the text in the NoScript element.

0 Basic Introductory Learning Web Development (HTML5&CSS3) 007<noscript><script>

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.