首先,我对我的英语不好感到抱歉,因为我不是以英语为母语的人,所以我的问题中可能存在一些与英语相关的错误......我希望任何读过我的问题的人都能理解我想说的。 ..我是一个学习者
我正在将 PSD 转换为 XHTML 和 CSS。我已经完成了我的工作,但是当我在 W3c 标记验证服务中检查我的整个代码时,我只收到一个错误,即
Line 80, Column 14: required attribute "action" not specified
<form>
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for and type="text/javascript" for .
我的问题是我不知道我应该对表单采取什么行动..
最佳答案
您想要提供处理表单的 URL,如下所示:
<form method="post" action="http://example.com/processform/">
有关于action
属性的介绍here .
关于xhtml - 未指定必需属性 "action",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3933966/