reading-notes

My reading notes


Project maintained by brandomoki Hosted on GitHub Pages — Theme by mattgraham

Readind Class-09

HTML Forms

  1. Why are forms so important in web development?

    • This allows your interactions between user and website.
  2. When designing a form, what are some key things to keep in mind when it comes to user experience?

    • keep it simple and to the point
  3. List 5 form elements and explain their importance.

    • Defines an HTML form for user input
    • group related data in a form
    • Defines an input control
    • Defines a caption for a
      element
    • the result of a calculation (like one performed by a script)

Learn JS

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

    • this is what triggers the computer to do something in code
  2. When using the addEventListener() method, what 2 arguments will you need to provide?

    • the name of the event and a function to handle the event
  3. Describe the event object. Why is the target within the event object useful?

    • you can replace propperties with this
  4. What is the difference between event bubbling and event capturing?

    • Event capturing means propagation of event is done from ancestor elements to child element in the DOM while event bubbling means propagation is done from child element to ancestor elements in the DOM (geeksforgeeks.org)