Web Tools Table Maker3schools TranslateImage CompressorFavicon Icon GeneratorCrop & Resize Image
Apu
Apu March 26, 2023 › #Javascript #Q&A

Which tag will display message if JavaScript is not enabled?

  1. <noscript>
  2. <scriptoff>
  3. <nojavascript>
  4. <no-script>

Answer: 1) <noscript>

Explanation: The <noscript> tag in HTML is used to provide an alternative content to users who have disabled JavaScript in their browsers. The content inside the <noscript> tag will be displayed in place of any JavaScript code that would have been executed. Therefore, if you want to display a message to users who have disabled JavaScript, you can use the <noscript> tag to show an alternative message. The other options given in the question, such as <scriptoff>, <nojavascript>, and <no-script> are not valid HTML tags and won't display any message if JavaScript is disabled.

Example of <noscript> element.

<noscript>
 JavaScript is disabled!
</noscript>
save
listen
AI Answer
Write Your Answer
loading
back
View All