← BYTES
HTML·Intermediate·Ref: 2.2.3
What do a `<form>` element's `action` and `method` attributes control?
Have a question about this video? Mention reference 2.2.3 when you contact us.
a.The form's visual styling only
b.They set the form's required validation rules
c.They control which browser can render the form
d.`action` specifies the URL the form's data is submitted to; `method` specifies the HTTP method used (typically GET or POST)
action="/submit" tells the browser where to send the form's data on submission; method="post" (vs. the default get) determines whether that data is sent in the URL's query string (GET, visible, size-limited, cacheable) or in the request body (POST, not visible in the URL, typically used for anything mutating server state).
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES223#HTML