reading-notes

201 class 9 notes

Why this matters: This information matters because because it discusses web forms, which are an important way to interact with and get information from users, and events, which will allow your code to respond to user input.


How To Structure A Web Form

Source: https://developer.mozilla.org/en-US/docs/Learn/Forms

Source: https://developer.mozilla.org/en-US/docs/Learn/Forms/Your_first_form

1. Why are forms so important in web development?

Because they are a powerful tool for user interaction and provide a way to collect user data or allow users to control a user interface.

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

3. List 5 form elements and explain their importance.


Intro to Events

Source: https://developer.mozilla.org/en-US/docs/Learn/JavaScript

Source: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events

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

Events are actions that happen on your site that your code will need to react to. For example, when a user clicks a button on your page, your code will need to do something, like display an information box.

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

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

THe event object event evt or e is the name of a parameter within an event handler function. It’s useful because it automatically passes extra features and information to event handlers.

4. What is the difference between event bubbling and event capturing?


Things I Want To Know More About:

Nothing at the moment!