Skip to content

Instantly share code, notes, and snippets.

@pvinthemix
Created August 15, 2018 19:35
Show Gist options
  • Save pvinthemix/c32dce69c54e8442d5add703ea223d53 to your computer and use it in GitHub Desktop.
Save pvinthemix/c32dce69c54e8442d5add703ea223d53 to your computer and use it in GitHub Desktop.
Mod 1 Questions and Answers

What is the attribute for indicate on the label element? Do you always have to use it? Why or why not? -The for attribute defines the use of the attribute and also allows you to wrap it.

What are 5 values for the type attribute of an input element and how do they work?

  • text
  • password
  • reset
  • submit
  • radio

What is the significance of the name attribute in a form?

  • Used when referencing data that is input into the form and used to reference elements in JS

What is a fieldset element?

  • The tag is used to group related elements in a form. The tag draws a box around the related elements.

Why would a legend element be important?

  • Gives it a name to the form. Works well with the fieldset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment