ASP.NET Basics

HTML Basics
ASP.NET Web Server
Advanced HTML
Application Designing
Using Visual Studio
ASP.NET Standards
ASP.NET Styling
ASP.NET Navigation

ASP.NET Tips

ASP.NET Validation
HTML forms
CSS Styling
CSS Advanced
ASP.NET Features
ASP.NET Image Effects
Common mistakes
DB Design tips

Building Applications

Design Secure Apps
Build Secure Apps

1. Defining HTML Forms - <form> tag

« Previous Chapter

Next Chapter »

Let’s assume you want to create a form, the first thing you need to do is define a Form element. The following shows a code snippet how this can be achieved.

<form id="form1">
</form>

Form tags like other HTML tags apply the functions to anything and everything in between the opening and the closing tags and this will be the part of the Form.

Note:

  • <form>” tags are not limited to one form on a page.

  • You can have as many sets of “<form>” tags as you need.

For example:

  • To provide a login form and a Signup form on the same page.

  • This can be achieved by making sure that the “<form>” tags are not nested.

  • <form>” tag is an invisible tag and it will not change the way in which the page is rendered at the browser, but some browsers seem to leave a small space after a form.

You can leave a “<form>” tag without anything in between them and nothing will be shown. When using the “<form>” tags there are THREE main attributes which can be used and are as follows:

« Previous Chapter

Next Chapter »

Table of Contents

» Chapter 1 - Defining HTML Forms - <form> tag
        Chapter 1.1 - HTML Form Action attribute
        Chapter 1.2 - HTML Form Method attribute
        Chapter 1.3 - HTML Form Name attribute
Chapter 2 - HTML TextBox
        Chapter 2.1 - HTML Input Name attribute
        Chapter 2.2 - HTML Input Value attribute
Chapter 3 - HTML Buttons
        Chapter 3.1 - HTML Submit Button
        Chapter 3.2 - HTML Reset Button
Chapter 4 - HTML TextArea
Chapter 5 - HTML Radio Buttons
Chapter 6 - HTML Checkboxes
Chapter 7 - HTML Selection Boxes
Chapter 8 - HTML Hidden Fields

[top]