6.4. Basic mouse clicks and position control

6.4.1. My first mouse click page

In XHTML, the first mouse click element is the anchor. Without knowledge of the mouse events, the anchor is a good practical way to implement a mouse click and provides links to the outside world. In fact anchor itself is a click event without a button. Another popular use of mouse clicks is using buttons. Buttons can be defined as an attribute inside the <input> element and associated with forms <form>. Let’s consider the following “My First Mouse Click Page.”

Example. ex06-12.htm – My First Mouse Click Page
 1: <?xml version="1.0" encoding="iso-8859-1"?> 2: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ...

Get Practical Web Technologies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.