annotations. HTML
even lets you put lists inside of lists (nesting), opening up a wealth of interesting combinations.
2.9.2 Searchable Documents
The simplest type of user interaction provided by HTML is the searchable document. You create a searchable HTML document by including an
tag in its header or body. The browser automatically provides some way for the user to type one or more words into a text input box, and to pass those keywords to a related processing application on the server.[ 7 ] [
, 7.6]
[7] Few authors have used the tag, apparently. The
tag has been "deprecated" in HTML version 4.0; sent out to pasture, so to speak, but not yet laid to rest.
The processing application on the server uses those keywords to do some special task, such as perform a database search or match the keywords against an authentication list to allow the user special access to some other part of your document collection.
2.9.3 Forms
Obviously, searchable documents are very limited - one per document and only one user input element. Fortunately, HTML provides better, more extensive support for collecting user input though forms .
You create one or more special form sections in your HTML document, bounded with the
tags. Inside the form, you may put predefined as well as customized text-input boxes allowing for both single and multiline input. You may also insert checkboxes and radio buttons for single-and multiple-choice selections, and special buttons that work to reset the form or send its contents to the server. Users fill out the form at their leisure, perhaps after reading the rest of the document, and then click a special send button that makes the browser send the form's data to the server. A special server-side program you provide then processes the form and responds accordingly, perhaps by requesting more information from the user, modifying subsequent HTML documents the server sends to the user, and so on. [