script
Description
Syntax
HTML
<script attribute-name="attribute-value"></script>
Attributes
Name | Value | Description |
---|---|---|
async | async | empty | Specifies that the script should be executed asynchronously, as soon as it becomes available |
charset | character encoding name | Character encoding of the external script |
crossorigin | anonymous | Sends crossorigin request without credentials |
use-credentials | Sends crossorigin request with credentials | |
defer | defer | empty | Specifies that script should be executed after the document has been parsed |
referrerpolicy | no-referrer | Specifies that no referrer information is to be sent along with requests to any origin. |
no-referrer-when-downgrade | Sends a request’s full referrerURL stripped for use as a referrer for requests: whose referrerURL and current URL are both potentially trustworthy URLs, or whose referrerURL is a non-potentially trustworthy URL. | |
origin | Specifies that only the ASCII serialization of the request’s referrerURL is sent as referrer information when making both same-origin-referrer requests and cross-origin-referrer requests. | |
origin-when-cross-origin | Specifies that a request’s full referrerURL is sent as referrer information when making same-origin-referrer requests, and only the ASCII serialization of the origin of the request’s referrerURL is sent as referrer information when making cross-origin-referrer requests. | |
same-origin | Specifies that a request’s full referrerURL is sent as referrer information when making same-origin-referrer requests. | |
strict-origin | Sends the ASCII serialization of the origin of the referrerURL for requests: whose referrerURL and current URL are both potentially trustworthy URLs, or whose referrerURL is a non-potentially trustworthy URL. | |
strict-origin-when-cross-origin | empty | Specifies that a request’s full referrerURL is sent as referrer information when making same-origin-referrer requests, and only the ASCII serialization of the origin of the request’s referrerURL when making cross-origin-referrer requests: whose referrerURL and current URL are both potentially trustworthy URLs, or whose referrerURL is a non-potentially trustworthy URL. | |
unsafe-url | Specifies that a request’s full referrerURL is sent along for both same-origin-referrer requests and cross-origin-referrer requests. | |
src | URI | URL for the audio stream |
type | MIME type | MIME type of the content - default is text/javascript |
Examples
1 · async
2 · charset
3 · crossorigin · anonymous
4 · crossorigin · use-credentials
5 · defer
6 · referrerpolicy · no-referrer
7 · referrerpolicy · no-referrer-when-downgrade
8 · referrerpolicy · origin
9 · referrerpolicy · origin-when-cross-origin
10 · referrerpolicy · same-origin
11 · referrerpolicy · strict-origin
12 · referrerpolicy · strict-origin-when-cross-origin
13 · referrerpolicy · unsafe-url
14 · src
15 · type
Links
Elements
- !doctype
- a
- abbr
- address
- area
- article
- aside
- audio
- b
- base
- bdi
- bdo
- blockquote
- body
- br
- button
- canvas
- caption
- cite
- code
- col
- colgroup
- data
- datalist
- dd
- del
- details
- dfn
- dialog
- div
- dl
- dt
- em
- embed
- fieldset
- figcaption
- figure
- footer
- form
- h1
- h2
- h3
- h4
- h5
- h6
- head
- header
- hgroup
- hr
- html
- i
- iframe
- img
- input
- ins
- kbd
- label
- legend
- li
- link
- main
- map
- mark
- menu
- meta
- meter
- nav
- noscript
- object
- ol
- optgroup
- option
- output
- p
- param
- picture
- pre
- progress
- q
- rb
- rp
- rt
- rtc
- ruby
- s
- samp
- search
- section
- select
- slot
- small
- source
- span
- strong
- style
- sub
- summary
- sup
- table
- tbody
- td
- template
- textarea
- tfoot
- th
- thead
- time
- title
- tr
- track
- u
- ul
- var
- video
- wbr