老师,检查代码

来源:3-8 编程练习

sunflower426

2019-12-28 06:20:22

<!DOCTYPE html>

<html>

<head>

    <meta charset="utf-8">

<title>表单新属性autofocus</title>

</head>

<body>

<!-- 此处写代码 -->

<from>

    用户名:<input type="text" name="name" autofocus="autofocus"><br/>

    请输入密码:<input type="password" name="password"><br/>

    <input type="button" value="注册">

</from>

</body>

</html>


写回答

1回答

好帮手慕糖

2019-12-28

同学你好,代码问题如下:

1、如下,应该是form标签,不是from。

http://img.mukewang.com/climg/5e06cdd3097e9d1902180201.jpg

2、表单要有提交效果,可以将button类型改为submit类型(submit类型是有提交的效果的),例:

http://img.mukewang.com/climg/5e06cdf1098d1a2204690076.jpg

如果我的回答帮助到了你,欢迎采纳,祝学习愉快~

0

0 学习 · 5012 问题

查看课程