You can use the <noscript> tag as a fallback content for the <script> tag.
The <noscript> tag displays an alternative content in the situation when –
Either JavaScript is disabled in the browser, OR
When browsers does not support JavaScript.
You can code this tag inside the <head> or the <body> tag.
Syntax: <noscript>text…<noscript>
Example
<pid="test"></p><script>document.getElementById("test").innerHTML ="Learn JavaScript from TutorialBrain";
</script><noscript>Browser does not support JavaScript!</noscript>