What is the code for the html text input box? How to create html text input box

云罗郡主
Release: 2018-11-01 14:17:37
Original
45563 people have browsed it

How to create an html text input box? What is the code for the html text input box? HTML forms are what is needed to get user input. But first, you need to make a text box, so how to create it is a question. Let's talk about how the Windows system creates an html text input box.

One: First create an HTML file, open Notepad or any other plain text editor, on Windows you can access Notepad through the Start menu, under "Accessories", then "Notepad" ". Alternatively, use the Windows key R, then type notepad and press Enter. [Recommended learning: Html5 tutorial]

2: Enter the code and write down the basic tags (

head> body> ; ).

3: Now that you have finished writing the basic code, you are ready to create a form to save the text box code, and then create the text box.

1. Enter between the two body tags (

and ):
.

2. The next step is to input the element, enter: .

3. Finally, after writing the form label, enter:

.

Code example:


 
 
 
 php中文网(php.cn)
 
Copy after login

Four: Save the page. Click File, Save As, and save it as test.html.

Five: Open the window and see your new text box!

The effect displayed in the web page is as follows:

What is the code for the html text input box? How to create html text input box

#You can also use JavaScript to make the text box and button perform certain operations together, if you want to precede the input box Put some text to explain what it is, do this before the tag.

The above is what is the code for the html text input box? A full introduction to how to create an html text input box. If you want to know more about HTML5 Online Manual, please pay attention to the php Chinese website.

The above is the detailed content of What is the code for the html text input box? How to create html text input box. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!