Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html form

<form action="/action.php">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" value="Mike"><br><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" value="Walker"><br><br>
  <input type="submit" value="Submit">
</form>
Comment

form.html

<!DOCTYPE html>
<html>
<head>
    <title>Contact</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
</head>
<body>
    <h1>Contact</h1>
    
    <form method="post" action="send-email.php">
        <label for="name">Name</label>
        <input type="text" name="name" id="name" required>
        
        <label for="email">email</label>
        <input type="email" name="email" id="email" required>
        
        <label for="subject">Subject</label>
        <input type="text" name="subject" id="subject" required>
        
        <label for="message">Message</label>
        <textarea name="message" id="message" required></textarea>
        
        <br>
        
        <button>Send</button>
    </form>
    
</body>
</html>
Comment

html form

<!-- Form which will send a GET request to the current URL -->
<form method="get">
  <label>Name:
    <input name="submitted-name" autocomplete="name">
  </label>
  <button>Save</button>
</form>

<!-- Form which will send a POST request to the current URL -->
<form method="post">
  <label>Name:
    <input name="submitted-name" autocomplete="name">
  </label>
  <button>Save</button>
</form>

<!-- Form with fieldset, legend, and label -->
<form method="post">
  <fieldset>
    <legend>Title</legend>
    <label><input type="radio" name="radio"> Select me</label>
  </fieldset>
</form>
Comment

PREVIOUS NEXT
Code Example
Html :: html color text 
Html :: meta name viewport 
Html :: how to make a html link execute a javascript function 
Html :: how to make a clear button in javascript 
Html :: coc allow comments in json 
Html :: href with new tab 
Html :: Validate length with html 
Html :: link open new tab 
Html :: bootstrap disabled button 
Html :: number dropdown html 
Html :: how to disable a link 
Html :: bootstrap latest version cdn 
Html :: chrome remove autocomplete highlight 
Html :: change icon on button click 
Html :: disable radio button in html 
Html :: html fax 
Html :: html button that hide and show 
Html :: calculator in html 
Html :: angular mat slide toggle get value 
Html :: stop website from overscrolling 
Html :: regular expression to look for html tags 
Html :: input and select box combined 
Html :: input float 
Html :: fa facebook icon 
Html :: html times 
Html :: fa fa users-class 
Html :: publish html website 
Html :: how to download stuff html 
Html :: a link in new window 
Html :: how to preview pdf in html 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =