My Profile

Friday, January 28, 2011

HTML & Its Structure

HTML is used for designing static web pages. It is hierarchical language and every instruction is provided in tha form of tags.


The only advantage of HTML is it takes very less code to provide good design/output. Its structure is divided into 2 parts.



  • <Head>
  • <Body>
Head part is used to provide information and some instructions related to current page.

The presentation part is written in Body part. one important tag in presentation is <Form> tag.

Use of <Form> tag: 

To create any graphical element in HTML, we have to use form element because HTML provides them as form elements. Another use of form tag is to send the content from client to server. We use form and its controls for communication.

Example:  Button, TextBox, CheckBox etc.,

Let's see one example program.

<html>
  <head>
      <title>Demo Program</title>
 </head>
 <body>
      <h1>Welcome</h1>
      <form id="form">
          UserName : <input type="text" id="t1"/><br/>
          Email Id : <input type="text" id="t2"/><br/>
          <input type="button" id="button1" value="Submit"/>
     </form>
  </body>
</html>

The output for this will be like this:





----------------------------------------------------------

** If you like this post please like our page in facebook "Dot Net Support

0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More