Beginning HTML and CSS Flashcards
in html what is the h1 tag?
- First level headline elements label important sections of a page, just like in a newspaper.
in html what is the purpose of the form element
to accept user input
in html can you nest forms
no
in html forms what is the action attr used for
The action attribute specifies the web address of a program that processes the information submitted via the form
in html forms what is the method attr used for
The method attribute specifies the HTTP method that the browser should use to submit the form, such as POST or GET. Forms cannot be nested inside one another
in html what does the post method do in refernece to a form
submit the body of the form
in html how is the get method represented in the url
it is appended to the url separated by ?’s &’s
in html forms what is the input tag used for
he input element is used to create many different types of form controls. The type attribute specifies what kind of form control should be rendered, such as text, email, passwords, and more. The name attribute is submitted with form data so that server-side code can parse the information.
in html what is the textarea tag used for
The textarea element accepts multiple lines of text from the user. Most browsers will render the textarea element with a widget to allow for resizing the editing area.
in html is a textarea self closing tags?
no
in html is the input a self closing tag
yes
in html what is required to submit a form
a submit button
in html what is the button tag
Just as the name implies, the button element will render a clickable button. The type attribute specifies whether the button should submit the form data, reset the form, or have no default behavior for use with JavaScript.
in an html button what types are available
submit, reset
in an html button what does a type of reset do
resets form data
in html what is the label element
The label element helps to organize forms by assigning some helpful text to a form control. This text helps the user to understand what kind of data they should add to each form field.
in html what is the benefit of adding the “for” attribute to a label
selecting the label sets the cursor inside the input field
in html what is the fieldset element for
The fieldset element wraps multiple form elements into common groups. This can help organize a form and make it easier to understand for users.
in html what is the legend element for
The legend element is similar to the label element, but instead of labeling a form control, it labels a fieldset. Adding a legend to a fieldset can provide some helpful context for users that are filling out a form.
in html what is a logical example of using the fieldset element
a mailing address
in html what is the select element for
The select element renders a drop-down menu that contains selectable options. This type of form control is ideal for scenarios where the user must choose one option from a preset list of 5 or more choices.
in html what is the option element for
The option element represents one of the choices that a user can choose in a select menu. It should always be nested inside of a select element.
in html what is the optgroup element for
The optgroup element wraps one or more option elements and helps to create logical groups. The label attribute specifies the text that the optgroup should display above the nested options.
In HTML 5 what is needed as the first line
<!DOCTYPE>