How to Create HTML Form ~ CodeTextPro - CodeTextPro | Web Tutorial | Technology

CodeTextPro.com Provides - Web design, Technology gyan, Digital marketing, Online earnings, Seo, Adsense, Technology news, Motivation and inspiration, Latest Technology Affairs, Gadgets, Blogging

Saturday, March 23, 2019

How to Create HTML Form ~ CodeTextPro

In this article, you will learn how to create an HTML form. Different types of stylish registration form are available here. 

 Registration Form
HTML Form

HTML Form Types


<!DOCTYPE html>
<html>
<body bgcolor="#F22235">

<h2>HTML Forms</h2>

<form>
  First name:<br>
  <input type="text" name="firstname" value="Hanif">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Miah">
  <br><br>
  <input type="submit" value="Submit">
<p>-------------------------------------------------------</p>
            <!-- CodeTextPro.Com-->
<p> Radio Button </p>

<input type="radio" name="gender" value="male" checked> Male<br>
  <input type="radio" name="gender" value="female"> Female<br>
  <input type="radio" name="gender" value="other"> Other
<p>-------------------------------------------------------</p>
            <!-- CodeTextPro.Com-->
 <p> GROUP </p>
 <fieldset>
    <legend>Personal information:</legend>
    First name:<br>
    <input type="text" name="firstname" value="Hanif"><br>
    Last name:<br>
    <input type="text" name="lastname" value="Miah"><br><br>
    <input type="submit" value="Submit">
  </fieldset>
<p>-------------------------------------------------------</p>
            <!-- CodeTextPro.Com-->
<p> GET METHOD </p>
</form>

<form action="/xml.php" target="_blank" method="GET">
  First name:<br>
  <input type="text" name="firstname" value="Hanif">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Miah">
  <br><br>
  <input type="submit" value="Submit">
</form>
<p>-------------------------------------------------------</p>
            <!-- CodeTextPro.Com-->
<p> POST METHOD </p>
<form action="/action_page.php" target="_blank" method="POST">
  First name:<br>
  <input type="text" name="firstname" value="Hanif">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Miah">
  <br><br>
  <input type="submit" value="Submit">
</form>

</body>
</html>

No comments:

Post a Comment