HTML Text Tag - Javatpoint
Có thể bạn quan tâm
Python
Python Django Numpy Pandas Tkinter Pytorch Flask OpenCVAI, ML and Data Science
Artificial Intelligence Machine Learning Data Science Deep Learning TensorFlow Artificial Neural Network Matplotlib Python ScipyJava
Java Servlet JSP Spring Boot Spring Framework Hibernate JavaFX Java Web ServicesB.Tech and MCA
DBMS Data Structures Operating System Computer Network DAA Computer Organization Software Engineering Data MiningWeb Technology
HTML CSS JavaScript Jquery Angular-8 React JS React Native Node JSSoftware Testing
Software Testing Selenium JIRA JMeter Postman TestNG SoapUI CucumberInterview×Technical Interview
C C++ Php Java Python JavaScript TypeScriptJava Interview
JDBC Servlet Maven Jenkins Spring Spring Boot JDB Hibernate JSFWeb Interview
HTML CSS JavaScript Jquery Angular Node-JS AJAXDatabase Interview
DBMS SQL PL/SQL Oracle MySQL MongoDB Redis MariaDBCompany Interviews
IBM Adobe Microsoft Amazon TCS HCL Wipro DXC Accenture Capgemini Space X Ericsson Infosy IGate EXL IndiaMART Sapient- Python
- Java
- Php
- C
- C++
- R
- Html
- Javascript
- Typescript
- Swift
HTML Tutorial
HTML Attributes
HTML Tags List
HTML5 Advance
HTML API
HTML Color Names
HTML Misc
MCQ
Interview Questions
next → ← prevHtml <text> tag The Html <text> tag is used to define the single-line text field on a web page. When we set the value text to the type attribute of an input element as shown in the following syntax: Syntax:<input type="text" name="firstname"/>Example<html> <head> <title> Example of text field </title> </head> <body> <form> <br> <label> Firstname: </label> <input type="text" name="FN" size="5"/> <br> <br> <label> Lastname: </label> <input type="text" name="LN" size="10"/> <br> <br> <label> Course: </label> <input type="text" name="Course" size="15"/> <br> <br> <label> College: </label> <input type="text" name="Course" size="20"/> </form> </body> </html> Html text tagOutput: Attributes of HTML Text Tag1. SizeThe size attribute is used to define the length of the text field. This attribute accepts the numeric values greater than zero. If you not specify this attribute, by default its value is 20. The following syntax determines how to use this attribute: <input type="text" name="firstname" size="Any_numeric_value" />2. ValueThe value attribute is used to define the value, which is displayed in the text field. The following syntax determines how to use this attribute: <input type="text" name="firstname" value=?Any_value? />3. maxlengthThe maxlength attribute is used to define a value. This value identifies the maximum number of characters accept by the input. The following syntax determines how to use this attribute: <input type="text" name="firstname" maxlength="5" />4. minlengthThe maxlength attribute is used to define a value. This value identifies the minimum number of characters accept by the input. The following syntax determines how to use this attribute: <input type="text" name="firstname" minlength="5" />Browser Support
|
Learn Important Tutorial
PythonJavaJavascriptHTMLDatabasePHPC++ReactB.Tech / MCA
DBMSData StructuresDAAOperating SystemComputer NetworkCompiler DesignComputer OrganizationDiscrete MathematicsEthical HackingComputer GraphicsWeb TechnologySoftware EngineeringCyber SecurityAutomataC ProgrammingC++Java.NetPythonProgramsControl SystemData WarehousePreparation
AptitudeReasoningVerbal AbilityInterview QuestionsCompany QuestionsWe provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
Contact info
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India
[email protected].
Follow us
Latest Post
PRIVACY POLICY
Tutorials
Java Data Structures C Programming C++ Tutorial C# Tutorial PHP Tutorial HTML Tutorial JavaScript Tutorial jQuery Tutorial Spring TutorialInterview Questions
Tcs Intuit Wipro Adobe Infosys Amazon Accenture Cognizant Capgemini MicrosoftOnline Compiler
C R C++ Php Java Html Swift Python JavaScript TypeScript© Copyright 2024 Javatpoint. All Rights Reserved.Từ khóa » Html5 Tag Text
-
List Of HTML5 Tags/Elements - Tutorial Republic
-
HTML Text Formatting - W3Schools
-
HTML Elements Reference - HTML: HyperText Markup Language
-
HTML Tags For Text - Flavio Copes
-
HTML: Tag - TechOnTheNet
-
HTML5 - Tags Reference - Tutorialspoint
-
Highlight Text With HTML Tag
-
WebD2: Common HTML Tags - University Of Washington
-
HTML5 Tag - Text | PoiemaWeb
-
HTML And CSS Tutorial - Nanyang Technological University
-
HTML Tag »
-
How To Bold, Italicize & Format Text In HTML - HubSpot Blog
-
In HTML, How Can I Change The Size Of Text On My Web Page? - IU KB
-
HTML Font Style – How To Change Text Color And Size With An ...