
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How do we add a noscript section in HTML?
The task we are going to perform in this article is about how do we add a noscript section in HTML.
For browsers that do not support script tags or that have been configured by the user to deactivate script, HTML uses the <noscript> tag to show the text. Both the <head> and the <body> tags contain this tag.
Note − This element is only utilised by browsers that do not support scripting.
Syntax
Following is the syntax for nonscript
<noscript> Contents... </noscript>
Let’s dive into the following examples, to know more about adding a noscript section in HTML.
Example 1
In the following examples we are using the <noscript> tag.
<!DOCTYPE html> <html> <body> <script> document.write("Tutorialspoint!") </script> <noscript>The Best E-way Learning</noscript> </body> </html>
When the script gets executed, it will generate an output displaying the text that was written inside the script while leaving the text written inside the noscript tag.
Example 2
Considering the following example, where we are using the <noscript> tag.
<!DOCTYPE html> <html> <head> <title>HTML noscript Tag</title> </head> <body> <script> document.write("Hello JavaScript!") </script> <noscript> Your browser does not support JavaScript! </noscript> </body> </html>
On running the above script, it will generate an output consisting of the text written inside the script while leaving the text written inside the noscript on the webpage.
- Related Articles
- How do we add a noframe section in HTML?
- How do we include a section in an HTML document?
- How do we add a definition term in HTML?
- How do we add a menu list in HTML?
- How do we add a table row in HTML?
- How do we add a comment in HTML code?
- How do we add document title in HTML?
- How do we add glossary definitions in HTML?
- How do we add bold text in HTML?
- How do we add a sample computer code in HTML?
- How do we add a push button to HTML?
- How do we add a single-line input field in HTML?
- How do we add the width in characters for in HTML?
- How do we create a footer for a document or section in HTML5?
- How do we display a script in HTML?
