> Online tutorial : HTML text
Showing posts with label HTML text. Show all posts
Showing posts with label HTML text. Show all posts

HTML button

Button
There are two buttons that can be created in HTML.one is called submit button.and other is reset button.

parameters of submit button
  • name:
    denotes the name of the submit the button.
  • value:
    It is writing some text on the text on button.
  • align:
    specifies the alignment of the buttons.
  • Example

    <html>
    <head>
    <title>
    HTML Button
    </title>
    </head>
    <body>
    <form name='form1'>
    <div align='left'>
    Enter the  fruit name
    <textarea cols="40" rows="6">
    <input type='submit' name='' value='Submit'>
    <input type='reset' name='check' value='reset'>
    </div>
    </form>
    </body>
    </html>
Output




HTML text

HTML text
Text is typically required to place one line text.for example if you want to enter name then it is always preferred to have Text field on the form.The text field can be set using
<input type='text' size='size of text' value="">


Some other parameters can be
  • name :
    indicates the name of text field
  • Max length:
    That allow us to enter the text of some maximum length.
  • align:
    denotes the alignment of the text field.The alignment can be left,right,bottom and top.
Example
<html>
<head>
<title>
HTML Text
</title>
</head>
<body>
<form name='text'>
<input type='text' size='20' value="textfield">
</form>
</body>
</html>

Output