HTML form tag tutorial (5): text field tag

HTML form tag tutorial (5): text field tag name: the name of the text field rows: the number of rows in the text field cols: the number of columns in the text field value: the default value of the text field File example: 11-17.htm
Insert a text field into the page.
01 <!-- ------------------------------ -->
02 <!-- File example: 11-17.htm -->
03 <!-- File Description: Insert text field-->
04 <!-- ------------------------------ -->
05 <html>
06 <head>
07 <title>Insert text field</title>
08 </head>
09 <body>
10 <h1>User Survey</h1>
11 <Form action=mailto:[email protected] method=get name=invest>
12 Please leave a message:<br>
13 <textarea name="comment" rows=5 cols=40>
14 </textarea><br>
15 <input type="submit" name="submit" value="Submit form">
16 </Form>
17 </body>
18 </html> Line 13 of the file description defines the text field as having 5 rows and 40 columns.
<br />This tag is used to create a multi-line text field in which you can enter more text.
Basic syntax <textarea name="name" rows=value cols=value value="value"> </textarea>
The meanings of these attributes are shown in the following table
Text field tag attribute value describe

<<:  Front-end JavaScript Promise

>>:  Solve the problem of Nginx returning 404 after configuring proxy_pass

Recommend

Two ways to implement HTML page click download file

1. Use the <a> tag to complete <a href=&...

Linux swap partition (detailed explanation)

Table of contents linux 1. What is SWAP 2. What d...

XHTML tags have a closing tag

<br />Original link: http://www.dudo.org/art...

CSS mimics remote control buttons

Note: This demo is tested in the mini program env...

MySQL slow query and query reconstruction method record

Preface What is a slow query and how to optimize ...

Example of using supervisor to manage nginx+tomcat containers

need: Use docker to start nginx + tomcat dual pro...

MySQL foreign key (FOREIGN KEY) usage case detailed explanation

Introduction: The disadvantages of storing all da...

Nginx try_files directive usage examples

Nginx's configuration syntax is flexible and ...

Solution to mysql prompt "got timeout reading communication packets"

Error message: user: 'root' host: `localh...

In-depth explanation of JavaScript this keyword

Table of contents 1. Introduction 2. Understand t...

MySQL Index Detailed Explanation

Table of contents 1. Index Basics 1.1 Introductio...

CSS example code for implementing sliding doors

The so-called sliding door technology means that ...

What knowledge systems do web designers need?

Product designers face complex and large manufactu...