HTML, XHTML and CSS All-In-One for Dummies - Andy Harris [168]
you’re accessing the contents of form elements to get information from the user. You need a mechanism for getting information from a text field and other form elements.textBoxes.html
5. Use form elements for output.
For this simple example, I also use form elements for output. The output goes in a second textbox, even though I don’t intend the user to type any text there.
Figure 5-7:
I got a greeting! With no alert box!
Creating the XHTML form
The first step in building a program that can manage text input and output is to create the XHTML framework. Here’s the XHTML code:
type = “text/css”
href = “textBoxes.css” />