reading-notes

Notes on Forms and JavaScript

Forms

Learn/Forms

Learn/Forms/Your_first_form

Learn/Forms/How_to_structure_a_web_form

Learn/Forms/HTML5_input_types

JavaScript

Learn/JavaScript

Learn/JavaScript/Building_blocks/Events

Learn/Web/Events

Why are forms so important in web development?

Forms are a key way for users to interact with websites and provide data input.

When designing a form, what are some key things to keep in mind when it comes to user experience?

Key things to consider include making the form easy to use, organizing it logically, using appropriate form elements, providing feedback, and designing for different devices.

List 5 form elements and explain their importance.

How would you describe events to a non-technical friend?

Events are actions that happen in the browser when a user interacts with a website, such as clicking on buttons, typing in text fields, or scrolling the page.

When using the addEventListener() method, what 2 arguments will you need to provide?

The type of event you want to listen for, and a function to execute when the event occurs.

Describe the event object. Why is the target within the event object useful?

The event object contains information about an event that has occurred, including the type of event, the target element that triggered the event, and additional data. The target is useful for accessing the element that triggered the event.

What is the difference between event bubbling and event capturing?

Event bubbling starts at the lowest level element and “bubbles up,” while event capturing starts at the highest level element and “captures” the event as it propagates down to the lowest level element.