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 Textboxes

 

—

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

‹ HTML Forms› HTML Radio Button

Recent Posts

  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • RAPTOR Editions
  • Flowgorithm Conditional Breakpoint Statement
  • Flowgorithm Read Numbers from File Example
  • Search Text File Flowchart Example
  • Flowgorithm Turtle Graphics Symbols
  • Draw Circle using Flowgorithm Turtle
  • Draw Parallel Lines using Flowgorithm Graphics

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version