HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML sandbox Attribute

HTML sandbox Attribute

 

 

The sandbox attribute enables an extra set of restrictions for the content in an iframe.

 

These restrictions are:-

 

  • block form submission
  • disable APIs
  • block script execution
  • prevent content from using plugins
  • prevent links from targeting other browsing contexts
  • block automatically triggered features
  • prevent the content to navigate its top-level browsing context
  • treat the content as being from a unique origin

 

If sandbox attribute value is set to sandbox then all restrictions will be applied. We can also provide a space-separated list of pre-defined values if we only want particular restrictions to be applied.

 

Used With:-

 

Element Attribute
iframe sandbox

 

Syntax:-

 

Its syntax is:- < element sandbox >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML