你知道name属性的后继是什么吗?
根据w3c验证器....
Validation Output: 4 Warnings
Below is a list of the warning message(s) produced when checking your document.
Warning Line 12, Column 21: The name attribute is obsolete. Consider putting an id attribute on the nearest container instead.
<p><a name="_GoBack"></a></p>
好的,所以我们并不真正关心实际的代码行…我最关心的是NAME属性…如果他们不赞成,我们怎么提交输入字段到php ??
这是我的主要问题…由于
此警告专门针对anchor
元素。name
属性对于表单元素仍然是完全有效的。
对于anchor
s,它已被弃用,而支持id
,您可以使用它通过标签链接到。