问:在textarea元素上,添加一个id属性并将其值设置为“ comment”
<!DOCTYPE html>
< html >
< head > < meta charset = “ utf-8” > < title > HTML表单</ title > </ head > < body > </ body > </ html > < form action = “ index.html“ method = ” post“ > <输入类型= ” text“ id = ”名称“名称= “用户名”
>
< textarea id = “ bio” 名称= “ comment” > </ textarea >
答:除非您正确设置格式,否则HTML代码不会显示,因此请在有机会时查看markdown备忘单。
此步骤要求您设置文本区域ID以进行注释。这是你写的-
< textarea id = “ bio” name = “评论” > </ textarea >
在这里,您将id设置为bio,名称设置为comment,所以这不是我们想要的。根据代码挑战,这是您需要输入的内容-
< textarea id = “评论” > </ textarea >
希望这可以帮助!