<分区>
Possible Duplicate:
What are valid values for the id attribute in HTML?
valid value for name attribute in html
用包含句点的字符串命名 HTML5 输入是否有效?
<input type="text" name="article.title" value="The title"/>
标签 html
<分区>
Possible Duplicate:
What are valid values for the id attribute in HTML?
valid value for name attribute in html
用包含句点的字符串命名 HTML5 输入是否有效?
<input type="text" name="article.title" value="The title"/>
最佳答案
是的,它是有效的。
但是如果您需要特别通过 JS 或 CSS 访问它们,您将给自己制造麻烦。同样,它可以做到,但会使事情变得困难。
我的建议是改用连字符。
关于html - 在 HTML5 输入的 "name"属性中放置句点是否有效?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12651114/