xhtml - 未指定必需属性 "action"

标签 xhtml

首先,我对我的英语不好感到抱歉,因为我不是以英语为母语的人,所以我的问题中可能存在一些与英语相关的错误......我希望任何读过我的问题的人都能理解我想说的。 ..我是一个学习者

我正在将 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/

相关文章:

html - 正确的 DOCTYPE...自定义属性和非标准标记

html - 是否有用于 Delphi 的 CSS3 选择器驱动的文档对象模型 (DOM) API?

html - <div/> 和 <div></div> 有区别吗?

html - 测试出现在下一列图像的底部

css - 使用 CSS 的 HTML 表单布局

javascript - 如何显示与所选数字相对应的多个表单字段?

xhtml - DocType xhtml1-transitional.dtd 忽略表格单元格高度

css - 用点填充空白

ruby - 我如何使用 nokogiri 验证 XHTML?

php - 使用无扩展名 URL 的优点是什么?