TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

HTML

HTML Submit Button

Overview

An HTML submit button helps the user to submit the information entered in the HTML fields.

The normal use case is that the user enters the required information in the HTML form fields, and clicks the Submit button on the HTML page. The page will take the user to target destination page specified in action attribute in the HTML form.

Syntax

Below is the syntax to add the button to the HTML page.

<input type=”submit” value=”Submit” />

The attribute type=”submit” specifies that the field is a submit button. The value attribute specifies the text on the submit button.

Example

<html>
<!–
####################################
# HTML Submit Button Demo
# www.TestingDocs.com
####################################
–>
<head>
<title> HTML Tutorials – HTML Submit Button Demo</title>
</head>

<body>
<h1> Contact Form </h1>
<p>
Display a sample HTML Form:
</p>

<form>
<br/>

<strong>Your Name :</strong>
<input id=”name” type=”text”/>
<br/>
<br/>

<strong>Your Email Address:</strong>
<input id=”email” type=”text”/>
<br/>
<br/>
<strong>Enter Text : </strong>
<br/>
<br/>
<textarea rows=”6″ cols=”50″> </textarea>
<br/>
<br/>
<input id=”submit” type=”submit”/>
<br/>
<br/>
</form>
<p>
<h2>
HTML Tutorials – www.TestingDocs.com
</h2>
</p>

</body>
</html>

HTML Submit Button

Reset Button

A Reset button is used to clear the entered information from the HTML fields.

Syntax

We can set the type attribute as type=”reset”

<input type=”reset” value=”Reset” />

—

HTML Tutorials

HTML Tutorials on this website:

https://www.testingdocs.com/html-tutorials/

More Information on HTML:

https://www.w3.org/TR/html401/intro/intro.html

Related Posts

Create HTML File

HTML /

Create HTML file with NetBeans IDE

HTML /

HTML5 Document Structure

HTML /

Introduction To HTML5

HTML5 Application NetBeans

HTML /

Create an HTML5 Application using NetBeans IDE

CSS Validator Tool

HTML /

HTML & CSS Validator Tools

‹ Insert CSS code to an HTML document› HTML Form GET and POST Methods

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version