HTML The Definitive Guide

Read Online HTML The Definitive Guide by Chuck Musciano Bill Kennedy - Free Book Online Page A

Book: HTML The Definitive Guide by Chuck Musciano Bill Kennedy Read Free Book Online
Authors: Chuck Musciano Bill Kennedy
Ads: Link
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
and
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. [
, 10.2]
    HTML forms provide everything you might expect of an automated form, including input area labels, integrated contents for instructions, default input values, and so on - except automatic input verification; your server-side program or client-side applets need to perform that function.
    2.8 Images Are Special
    2.10 Tables

    Chapter 2
    HTML Quick Start
     
    2.10 Tables
    For a language that emerged from academia - a place steeped in data - it's not surprising to find that HTML supports a set of tags for data tables that not only align your numbers, but can specially format your text, too.
    Five tags enable tables, including the tag itself and a ) tag and its end tag () either table header (
tag for including a description of the table. Special tag attributes let you change the look and dimensions of the table.
    You create a table row by row, putting between the table row (
) or table data () tags and their respective contents for each cell in the table. Headers and data may contain nearly any regular HTML content, including text, images, forms, and even another table. As a result, you can also use HTML tables for advanced text formatting, such as for multicolumn text and sidebar headers (see Figure 2.5 ). For more information, see Chapter 11,
    Tables.
    Figure 2.5: HTML tables let you perform page layout tricks, too

    2.9 Lists, Searchable
    2.11 Frames
    Documents, and Forms

    Chapter 2
    HTML Quick Start
     
    2.11 Frames
    Anyone who has had more than one application window open on their graphical desktop at a time can immediately appreciate the benefits of frames. Frames let you divide the browser window into multiple display areas, each containing a different document. For more information on frames, see Chapter 12, Frames .
    Figure 2.6 is an example of a frame display. It shows how the document window may be divided into many individual windows separated by rule lines and scroll bars. What is not immediately apparent in the example,
© Diana Hicks Books 2024 [email protected]