What does '< noscript >' tag mean? How we can use it? Please explain me. Thanks you all!

4 answers

Sagar 35
3
points
This was chosen as the best answer
<noscript> tag  is used when you want to display a message in case Javascript is disabled in your browser

For example:

<script type="text/javascript">
alert("Hello World!");
</script>
<noscript>Javascript is disabled</noscript> 
Answered over 6 years ago by Sagar
Mottie 1134
2
points

Actually the <noscript></noscript> tag is where you can add HTML that works or text that is displayed when javascript is disabled.

You can see an example on this page:

<noscript>Your browser does not support JavaScript!</noscript>
Answered over 6 years ago by Mottie
1
point

Javascript should always be considered an optional extra - you have no guarantee that it will be applied to your page for any specific visitor. If you are using a progressive enhancement approach, it is to be hoped that your page will remain fully functional in the absence of javascript.

However, there are situations in which this isn't possible, in which case you can use the noscript element to contain additional content which provides the missing functionality. e.g. it might be links to additional content which would be retrieved via Ajax if javascript were working.

Note that the script element allows the embedding of any scripting language in the document (defined by the type attribute). 99.9% of the time that means javascript, but, back in the geocities era you occasionally encountered pages with embedded vbscript (processed by Internet explorer only, of course). It might still be prevalent in some intranets. One flaw of noscript is that it can't be tied to specific instances of scripts, and whether or not it was triggered when there were multiple scripting languages embedded on a page and one wasn't supported was rather flaky cross-browser. But so long as you stick to just javascript, things should be fine. There were browsers which didn't grok "noscript" and displayed its content regardless, but from memory that was something like Netscape 2

Answered over 6 years ago by Richard Grevers
-1
points

HTML stands for Hyper Text Markup Language. A markup language is a set of markup tags. HTML uses markup tags to describe web pages... Try reading this Introduction to HTML:

http://www.w3schools.com/html/html_intro.asp

Answered over 6 years ago by Gary Hepting