HTML Help & Resources
Document No Scripting Tag
If you plan on inserting scripts, for use inside your document, always consider the possibility of a user disabling scripting in their web browser, particularly if the script is generating output a user needs to see or performing a function that enhances or enables some sort of visual formatting.
By utilizing a NOSCRIPT tag, which must immediately follow the SCRIPT tag, you provide the browser an alternative display capability, in the event scripting is unavailable. Consider, when scripting is disabled in a web browser, that your scripts will generate zero output and have zero impact on a document, thus the potential need for allowing for an alternative display.
In addition to users not being able to see the output, when scripting is disabled, search engines, crawlers, and robots, are not able to see any aspects of your script - under any circumstances. For this reason alone, it's always best to supply a NOSCRIPT immediately following a SCRIPT tag. Crawlers and robots will crawl, because they can read it, all content found inside a NOSCRIPT tag, and build it into your website/page profile.
In order to ensure all possible content is seen by crawlers and robots, always include a NOSCRIPT tag after a SCRIPT tag. There are two methods available to insert your NOSCRIPT tag. They are listed below.
The elements of scripting, namely Javascript, and how to use it, are not covered in this reference. For more information on how to utilize the power of scripting and Javascript, visit our Javascript reference instead.
Method #1 - Inside the Document Head
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>My First HTML Document</TITLE>
... META DATA ...
<SCRIPT LANGUAGE="Javascript1.2" TYPE="text/javascript" SRC="scriptname.js"></SCRIPT>
<NOSCRIPT>
...HTML code....
</NOSCRIPT>
</HEAD>
<BODY>
<P>This is my first HTML document.</P>
<P>Sending you to my second HTML document...</P>
<P>If this page does not refresh in 10 seconds, go to second HTML document .</P>
</BODY>
</HTML>
Method #2 - Inside the Document Body
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>My First HTML Document</TITLE>
... META DATA ...
</HEAD>
<BODY>
<P>This is my first HTML document.</P>
<SCRIPT LANGUAGE="Javascript1.2" TYPE="text/javascript" SRC="scriptname.js"></SCRIPT>
<NOSCRIPT>
...HTML code....
</NOSCRIPT>
<P>Sending you to my second HTML document...</P>
<P>If this page does not refresh in 10 seconds, go to second HTML document .</P>
</BODY>
</HTML>
Move on to the Next Topic - Inline Frames.