HTML Forms Day 4 Flashcards
what are forms in HTML?
Forms in HTML allow for users/clients to interact with your application/website by inputting data. We create form elements using tags and then fill the form with a selection of different types of control elements.
what are popular attributes and values of the form element?
attributes: action, method a
values: Action takes a URI like “/example.com” and Method takes a HTTP request method of either GET or POST.
what are popular attributes and values of the input element?
attributes: type
values: button, checkbox, color, date, email, hidden, number, password, radio, submit, text, url: are popular values
what are other popular attributes and values of the input element?
attributes: checked, name, placeholder, value.
values: Checked is either true or false. Name, placeholder, and value will be equal to a string.
what are popular attributes and values of the label element?
attributes: for
values: the for attribute takes a string corresponding to the id attribute of an element being labeled.
what are popular attributes and values of the select element?
attributes: name, disabled
values: Disabled is either true or false. Name will be equal to a string.
what are popular attributes and values of the option element?
attributes: value, selected, disabled
values: Disabled/Selected is either true or false. Value is equal to a string.
what are popular attributes and values of the Textarea element?
attributes: maxlength, minlength, name, rows, cols, wrap, spellcheck
values: values depend on the attribute but are usually just a string of text or numbers.