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

DIV common attributes collection

1. Property List Copy code The code is as follows:...

Several ways to backup MySql database

mysqldump tool backup Back up the entire database...

Summary of 4 methods of div+css layout to achieve 2-end alignment of css

The div+css layout to achieve 2-end alignment is ...

How to get the width and height of the image in WeChat applet

origin Recently, I am working on requirement A, i...

Sample code using the element calendar component in Vue

First look at the effect diagram: The complete co...

How to use binlog for data recovery in MySQL

Preface Recently, a data was operated incorrectly...

Solution to Nginx 500 Internal Server Error

Today, when I was using Nginx, a 500 error occurr...

Steps to set up HTTPS website based on Nginx

Table of contents Preface: Encryption algorithm: ...

Zabbix configures DingTalk's alarm function with pictures

Implementation ideas: First of all, the alarm inf...

How to redirect URL using nginx rewrite

I often need to change nginx configuration at wor...

Three methods to modify the hostname of Centos7

Method 1: hostnamectl modification Step 1 Check t...

How to encapsulate axios in Vue project (unified management of http requests)

1. Requirements When using the Vue.js framework t...

How to implement animation transition effect on the front end

Table of contents Introduction Traditional transi...