Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第214天 HTML5中required属性有什么应用场景? #1525

Open
haizhilin2013 opened this issue Nov 15, 2019 · 2 comments
Open

[html] 第214天 HTML5中required属性有什么应用场景? #1525

haizhilin2013 opened this issue Nov 15, 2019 · 2 comments
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第214天 HTML5中required属性有什么应用场景?

我也要出题

@haizhilin2013 haizhilin2013 added the html html label Nov 15, 2019
@cxwht
Copy link

cxwht commented Nov 17, 2019

required是input 中的属性,用来规定提交前必须填入字段的功能,所以可以运用在某些注册的必填或者问卷调查的必填项内

@jsThin
Copy link

jsThin commented Nov 17, 2019

required 是HTML5中新增的input属性,表示必填项
<input required="required"/>
or
<input required />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

3 participants