当前位置:网站首页>Educator web exercise - creating a text area
Educator web exercise - creating a text area
2022-06-21 12:33:00 【It's a deer】
Create a text area
List of articles
The first 1 Turn off :textarea Control related concepts
Related knowledge
textarea Attributes of the tag
textarea Labels are used to define multiline text areas , The text area can hold an unlimited number of text , The default font for text is constant width font (Courier).
textarea Basic properties of
textarea The basic properties of are :
- cols: Specify the number of characters in each line
- rows: Specify the number of visible lines
- name: Specifies the name of the text area
- readonly: Specifies that the text area is read-only
- disabled: Specifies that the text area is not available
HTML5 in textarea New properties of
textarea The new properties of the are :
- wrap: Specify when the form is submitted , Text wrapping mode of text area . The value is soft No line break , The value is hard Means line break
- maxlength: Specifies the maximum number of characters in the text area
- placeholder: A brief reminder , Describe the expected input value in the text area
- required: Specifying a text area is required / Required .
- autofocus: Specifies that when the page loads , The text area automatically gets the focus
- form: Define one or more forms to which the text area belongs .
Customs clearance knowledge
1、 If the text area is set to display 10 That's ok , Each line shows 50 Characters , The right choice is (C)
A、<textarea rows="50" cols="10">
B、<input rows="50" cols="10">
C、<textarea rows="10" cols="50">
D、<input rows="10" cols="50">
2、 If the text area is set to read-only , Can be found in textarea Add... To the tag (B) attribute .
A、disabled
B、readonly
C、required
D、autofocus
3、 Make... When the form is submitted textarea Text wrapping in , The right choice is (D)
A、<textarea name="mm" rows="5" cols="50">
B、<textarea name="mm" rows="5" cols="50" wrap>
C、<textarea name="mm" rows="5" cols="50" wrap="soft">
D、<textarea name="mm" rows="5" cols="50" wrap="hard">
4、textarea The properties of the tag do not include (A)
A、width
B、rows
C、cols
D、maxlength
5、textarea The width of the text area is available size Property to set .(B)
A、 correct
B、 error
The first 2 Turn off : Create a text field
Related knowledge
Setting of text field
stay textarea In the label , Use cols Property to specify the number of characters per line in the text field , Use cols Property to specify the number of characters per line in the text field , Use rows Property to specify the number of lines visible in the text field , Use name Property specifies the name of the text field , Use wrap Property to specify when the form is submitted , Text wrapping mode of text area . add to required Property can specify that the contents of the text field must be filled in .
Examples are as follows :
Recommended reasons :<textarea name="userName" cols="40" rows="4" wrap="hard" required="required"></textarea>
The effect is as follows :

Programming requirements
In the editor on the right Begin - End Supplement code in the area , The specific requirement is :
- Create a text field
- The name of the text field is “reason"
- The number of visible lines in the text field is 6, Each row 50 Characters
- The text field must be filled in
- When the form is submitted , The text in the text display area should wrap automatically at the end of the line
The effect is as follows :

Customs clearance code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title> Set text field </title>
</head>
<body>
<form action="" method="post">
Please enter your reason for choosing this major :<br/>
<!-- ********* Begin ********* -->
<textarea name="reason" cols="50" rows="6" required="required" wrap="hard"></textarea>
<!-- ********* End ********* -->
<br/>
<input type="reset" value=" Reset ">
<input type="submit" value=" Submit ">
</body>
</html>
边栏推荐
猜你喜欢

一文掌握SQLite3基本用法

Methods commonly used in uniapp (part) - timestamp problem and rich text parsing image problem

Six relationships of UML - system learning IV

最新远程部署运维工具汇总

安科瑞BM100系列信号隔离器的实际应用

Educoder Web练习题---对表单元素分组

【无标题】

【Appium踩坑】关闭inspector后打开weditor,uiautomator2.exceptions.NullPointerExceptionError: -32001 Jsonrpc er

Standing at the digital tuyere, how can tooling enterprises "fly"
![[appium stepping pit] close the inspector and open the WebEditor, uiautomator2 exceptions. NullPointerExceptionError: -32001 Jsonrpc er](/img/72/b5bf1be466518525b68e84b2e64b71.jpg)
[appium stepping pit] close the inspector and open the WebEditor, uiautomator2 exceptions. NullPointerExceptionError: -32001 Jsonrpc er
随机推荐
Simple factory vs Factory Method & handwritten automatic chemical factory - system learning 6
WPF uses Maui's self drawing logic
Vs code + GDB download and debugging of STM32 development
网页加载时waiting(TTFB)时间过长的问题解决
安科瑞BM100系列信号隔离器的实际应用
Educoder Web练习题---表单的结构
Tensorflower uses the specified GPU and GPU video memory
[comprehensive pen test] difficulty 2.5/5: "tree array" and "double tree array optimization"
Common instructions for five basic data types in redis
openGauss的版本
8 种最坑的SQL错误用法
路由器Telnet及ACL配置
channels详细使用说明
Educoder Web练习题---创建输入控件
3. 运算符
Redis-bitmap 位图
matplotlib 画图 Tips
2. 数据类型
Educoder Web练习题---文本层次语义元素
青龙面板XDD-PLUS登录提示“当前登录环境异常,为保障您的账号安全,暂时无法登录。建议将两个设备连接同一网络或WIFI后重新扫码”解决方法。