Created
March 15, 2017 19:48
-
-
Save Ggoering/0d4541374cdd52a2c87c129935a713d9 to your computer and use it in GitHub Desktop.
Mod 1 Questions from HTML lesson 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Part One: | |
1. What is the attribute for indicate on the label element? Do you always have to use it? Why or why not? | |
* the attribute "for" is used to tie the label element with its corresponding input on a form. Not required if the input is within the label element. | |
2. What are 5 values for the type attribute of an input element and how do they work? | |
* button: by default does nothing, but is interactable | |
* radio: provides options in which only a single choice is possible | |
* checkbox: value attribute must be defined to each box, multiple choices possible | |
* email: checks for valid email address format, or accepts blank depending on settings | |
* date: accepts only valid dates as an input, can provide clickable calendar | |
What is the significance of the name attribute in a form? | |
* Is the replacement for id in HTML 5, and therefor must be unique amongst the other forms in the webpage? website? | |
What is a fieldset element? | |
* A fieldset element goes within a form element. It is used to provide a box around as well as legend and label to the input element contained within the fieldset. | |
Why would a legend element be important? | |
* The legend will be used to display to the user the overall title of the form |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment