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 Textbox

Overview

An HTML Textbox or text field allows the user to input text information on the web page. It is a rectangle-shaped box.

Syntax

The syntax for the textbox is as follows:

<input type=”text”

type attribute has the value “text” which creates a textbox field.
We can create many elements with the <input> tag, depending on the type attribute, input can be textbox, password field, checkbox, radio button, or Submit/Reset button.

Example

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

<body>
<h1> HTML Form </h1>
<h3> Contact Form </h3>
<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>

 

Sample Output

 

—

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

HTML /

Create HTML file with NetBeans IDE

HTML /

HTML5 Document Structure

HTML /

Introduction To HTML5

HTML /

Create an HTML5 Application using NetBeans IDE

HTML /

HTML & CSS Validator Tools

‹ HTML Forms› HTML Radio Button

Recent Posts

  • Scaler Academy – An Online Learning Platform
  • Difference between PHP and JavaScript?
  • 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

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com