MCQ Hive stays free thanks to ads. Please disable your ad blocker for this site so content and features keep working.
Web Development
HTML
Beginner
Q
Which statement about HTML form methods is correct?
APOST data appears in the URL
BGET can send unlimited data
CGET appends the form data to the URL (visible and bookmarkable); POST sends it in the request body
DGET is encrypted; POST is not
Correct Answer:
C. GET appends the form data to the URL (visible and bookmarkable); POST sends it in the request body
Explanation:
Neither method is encrypted without HTTPS. Never send passwords with GET.
ALSO KNOW (related points):
• How is a correctly associated with an input? → With matching
• Which statement about id and class attributes is correct? → An id must be unique in the document; a class can be shared by many elements
• How should custom data be stored on an HTML element for use by JavaScript? → With data-* attributes, such as data-station-id="42", read through element.dataset.stationId