Class 9 Reading Assignment
These are my notes from Module 9
Your First Web Form
How To Structure A Web Form.
- Why are forms so important in web development?
- forms are important because it allows the websites users to interact with the page by entering in important information for whatever the task at hand is. this is then passed on to a database where it can be stored until needed for future use.
- When designing a form, what are some key things to keep in mind when it comes to user experience?
- if your form is too large then you risk losing users through frustration.
- List 5 form elements and explain their importance.
Java Script
Introduction To Events.
- How would you describe events to a non-technical friend?
- an event is something that happens that your code will then respond to using an event listener. an event could be a mouse click or when you hover over a link and it changes colors.
- When using the addEventListener() method, what 2 arguments will you need to provide?
- the name of the event that we want to register the handler for and the code that comprises the handler function
- Describe the event object. Why is the target within the event object useful?
- this is passed to event handlers to provide extra features and information.
- What is the difference between event bubbling and event capturing?
- event bubbling is when elements within your container will notify their parent that an event has happened. this happens in forms when you type something in or when you press the button. it will notify the event listener at the form level. event capturing is the complete opposite where the listener would be at the form level and it would propogate downwards towards the child elements.