Reading_Notes

View the Project on GitHub Hiba-Almade/Reading_Notes

Forms and Events

HTML Form:

A form is a method used to take data from the user and send it to the server.

For example, logging in or giving feedback to a site will need information and user opinions only who owns it..

In HTML <input type=" "> is an important element of HTML form. The “type” attribute of input element can be various types, which defines information field. Such as <input type="text" name="name"> gives a text box.

>> There are many type of input :

form


JS Event:

What is an Event ?

JavaScript’s interaction with HTML is handled through events that occur when the user or the browser manipulates a page.

When the page loads, it is called an event. When the user clicks a button, that click too is an event. Other examples include events like pressing any key, closing a window, resizing a window, etc.

js

type of event