HTML and CSS Reference
1. What happens whenever a user clicks a link, button, or form element on a web
2. In an event handler, what does this refer to?
3. What kinds of nodes on a page can be associated with properties like nextChild
and previousChild ?
1. Whenever a user clicks a link, a button, or any form element, the browser generates
an event signal that can be captured by one of the event handlers mentioned in the
2. In event handlers, this is a reference to the element on which the event was called.
So in an event handler for the onclick event of a link, this would refer to the link
that the user clicked on.
3. Nodes in the DOM can include HTML elements, text inside HTML elements, and
even whitespace between elements.
the form is ever submitted to the server. A script must access the server before it
can determine the validity of the entries on a form. (Note that even if you use
1. Change the HTML validation example to add error messages to the page above the
form when validation fails.
2. Add a Preview button to the form validation example that displays the values the
user entered below the form.
3. Modify the FAQ example so that users can click a link for each question to remove
that question from the page entirely.