Page 9 - DCAP604_MODERN_WEB_PROGRAMMING_TOOLS_AND_TECHNIQUES_I
P. 9
Unit 1: The .Net Framework
In an HTML form, all controls are placed between the <form> and </form> tags. The preceding Notes
example includes two check boxes (represented by the <input type=”checkbox”/> element) and
a button (represented by the <input type=”submit” /> element). The <br/> element adds a line
break in between lines. In a browser, this page looks like Figure 1.2.
Figure 1.2: An HTML Form
HTML forms allow web application developers to design standard input pages. When the user
clicks the Submit button on the page shown in Figure 1.2, all the data in the input controls (in this
case, the two check boxes) is patched together into one long string of text and sent to the web
server. On the server-side, a custom application receives and processes the data.
Amazingly enough, the controls that were created for HTML forms more than ten years ago are
still the basic foundation that you’ll use to build dynamic ASP.NET pages! The difference is the
type of application that runs on the server-side. In the past, when the user clicked a button on a
form page, the information might have been e-mailed to a set account or sent to an application
on the server that used the challenging Common Gateway Interface (CGI) standard. Today,
you’ll work with the much more capable and elegant ASP.NET platform.
HTML Tags
A tag is a reference in an HTML document which describes the style and structure of the document.
All tags start with < and end with >. Tags which mark a beginning have no /. Tags which mark
an ending have a / immediately after <, as in </.
<HTML>
<HEAD>
<TITLE>My Home Page</TITLE>
</HEAD>
<!-- Written by me -->
LOVELY PROFESSIONAL UNIVERSITY 5