Create An Html Page

You can use a text editor to create a Web page. A Web page should, at a minimum, have the <html> and the <body> tags in it. The tags in your HTML page give your Web browser specific instructions for displaying the page to the user. Most tags have an opening and a closing tag that affect the text between the tags. The closing tag should have a forward slash (/) in it. It is common to type tags in uppercase letters to make the tags stand out from the text in the Web page.

The <html> tag identifies a document as a Web page. You must place the HTML markup that you want to appear in the Web browser between the <BODY> tags.

You can create an HTML page with a form on it to gather input from a user. A form can be placed anywhere between the <body> tags in an HTML page. The action attribute in the <form> tag tells which page should process the form when the user submits the form.

Forms are the best way to collect input from a user. You will consistently use forms if you are building an interactive site. HTML forms are a big part of how the ASP.NET has implemented its Framework, as you will see with Web Forms.

CREATE AN HTML PAGE

4 Untitled - Notepad

_ I File I Edit Format Help

3 BusinessTitlesT emplate. aspx CommentsT emplate. aspx Convert T oWebPageT emplate. aspx CreateApplicationT emplate. aspx CiealeCookieColleclionT emplal 3. aspx QealeCookieT emplate. aspx CreateS essionT emplate. aspx

_ D atagridT emplate. aspx

¡¿¿I DeclareServerSideObjectGlobs " fLj DefaultT emplate. htm J[j DeleteApplicationT emplate. asp t

4 Untitled - Notepad

_ I File I Edit Format Help

1 New

Ctrl+N 1

Open...

Ctrl+O

Save

Ctrl+S

Save As..,

3 BusinessTitlesT emplate. aspx CommentsT emplate. aspx Convert T oWebPageT emplate. aspx CreateApplicationT emplate. aspx CiealeCookieColleclionT emplal 3. aspx QealeCookieT emplate. aspx CreateS essionT emplate. aspx

_ D atagridT emplate. aspx

¡¿¿I DeclareServerSideObjectGlobs " fLj DefaultT emplate. htm J[j DeleteApplicationT emplate. asp t

Template.

Iah Files

□ Start your text editor.

-0 Click File O Open.

Click H to select the folder that contains your Code Templates.

D eleteS essionT emplate. aspx GenericTemplate.asp G enericT emplate. asp« I GenericTemplate.html G etR equestParamsT emplate. aspx R eadApplicationT emplate. aspx R eadCookieCollectionT emplate. aspx R ead Co okieT emplate. aspx R eadS essionT emplate. aspx I S uggestionsT emplate. htm S uggestionsT emplatel .aspx jJ

Cancel VM -1

Q Click 0 to select All Files from the drop-down list.

hH Click to select a template.

L0 Click Open to open the template.

~Q Type a description of the page between the <H3> tags.

^O Position the cursor insertion point between the <BODY> tags and create a form for collecting information about user comments.

Add additional HTML controls to the form to collect information.

Add a Submit button to the form.

Was this article helpful?

0 0

Post a comment