- <noscript>
- <scriptoff>
- <nojavascript>
- <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>
Comments (0)