HTML Forms and Styling

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/24

flashcard set

Earn XP

Description and Tags

These flashcards cover the fundamental HTML elements, attributes, and CSS styling techniques used to build and validate web forms as described in the lecture.

Last updated 10:47 PM on 8/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

25 Terms

1
New cards

formform element

The outermost element that contains all other form elements, such as inputs and buttons.

2
New cards

actionaction attribute

An attribute that allows the developer to specify the URL where the form data will go after it has been submitted.

3
New cards

methodmethod attribute

An attribute used to specify whether the form data should be sent via getget or postpost.

4
New cards

getget method

A method typically used when dealing with unsecured data since the data will be present in a query string.

5
New cards

postpost method

A method typically used when dealing with secure data or when dealing with a large amount of soft data.

6
New cards

inputinput element

The element used when creating text input fields, radio buttons, and checkboxes; it requires typetype and namename attributes.

7
New cards

typetype attribute

An attribute used to specify the kind of input desired, such as radioradio, checkboxcheckbox, or texttext.

8
New cards

namename attribute

A unique identifier for an element required when submitting a form so that data can be organized into key-value pairs.

9
New cards

maxlengthmaxlength attribute

An attribute used to set the maximum number of characters allowed for an input field.

10
New cards

email input

A specialist type of text input created by setting the typetype to "email" which has built-in validation for valid email addresses.

11
New cards

password input

A type of text input created by setting the typetype to "password" that masks entered text to hide it.

12
New cards

checkboxes

Form elements that allow users to select multiple values at a time, each requiring a unique valuevalue attribute.

13
New cards

radio buttons

Form elements that share the same namename attribute value to ensure only one value can be selected by the user.

14
New cards

labellabel element

An element that associates text with a form element to improve accessibility for screen readers and allow selection by clicking on the text.

15
New cards

forfor attribute

An attribute on a label element that must match the idid of the form element it is associated with.

16
New cards

textareatextarea element

An element used to capture larger amounts of text when more than one line of input is required.

17
New cards

rowsrows and colscols attributes

Attributes used to specify the size of a textareatextarea element.

18
New cards

fieldsetfieldset element

A semantic tag used to group related form elements together, especially within larger forms.

19
New cards

selectselect element

An element used for creating select boxes, typically for long lists where only one option should be selected.

20
New cards

optionoption element

An element provided inside a selectselect tag to define the various choices in a list.

21
New cards

buttonbutton element

An element used to interact with forms, requiring a typetype attribute with values of "button", "reset", or "submit".

22
New cards

placeholderplaceholder attribute

An attribute that provides the user with hint text inside a textbox or textarea to help them decide what to type.

23
New cards

requiredrequired attribute

An HTML attribute applied to form elements to ensure the user provides a value before the form can be submitted.

24
New cards

:valid:valid pseudo selector

A CSS selector used to style form elements based on valid input values.

25
New cards

:invalid:invalid pseudo selector

A CSS selector used to style form elements based on invalid input values.