I don't see any restrictions on where the 'media' attribute can be used. Downloads About XULPlanet Contact Us mozilla.org mozdev.org MozillaZine.org MozillaNews Example: Copy. Please whitelist us in your ad blocker. The nonce attribute enables you to âwhitelistâ certain inline script and style elements, while avoiding use of the CSP unsafe-inline directive (which would allow all inline script/style), so that you still retain the key CSP feature of disallowing inline script/style in general.. The function receives the React component instance or HTML DOM element as its argument, which can be stored and accessed elsewhere. Instead of passing a ref attribute created by createRef(), you pass a function. HTML Reference is free and always will be! name Defines the unique identifier for that textarea within the form. Note: Any forms involving sensitive information like passwords should be served over HTTPS. Attribute selectors have less specificity than an ID, more than an element/tag, and the same as a class. The table below lists all HTML attributes and what elements they can be used within: Attribute Belongs to Description; accept Specifies the types of files that the server accepts (only for type="file") accept-charset