必需的属性“动作"未标明 [英] required attribute "action" not specified

查看:29
本文介绍了必需的属性“动作"未标明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我很抱歉我的英语不好,因为我不是母语为英语的人,所以我的问题中可能有一些与英语相关的错误......我希望任何阅读我的问题的人都能理解我想说的话...ima 学习者

first of all i m sorry for my bad english becouse i m not a native english speaker so may be there are some english related mistakes in my question...i hope anyone who will read my question can understand what i want to say...i m a learner

我正在将 PSD 转换为 XHTML 和 CSS.我已经完成了我的工作,但是当我在 W3c 标记验证服务中检查我的整个代码时,我只有一个错误是

i m converting PSD to XHTML and CSS. i have completed my work but when i checked my whole code in W3c markup validation service ,i got only one error which is

第 80 行,第 14 列:必需属性未指定动作"

Line 80, Column 14: required attribute "action" not specified

    <form>

上面给出的属性是必需的对于您使用过的元素,但是你忽略了它.例如,在大多数 HTML 和 XHTML 文档类型类型"属性是必需的脚本"元素和alt"img"需要属性元素.

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.

type 的典型值为type="text/css" 用于和type="text/javascript" for .

Typical values for type are type="text/css" for and type="text/javascript" for .

我的问题是我不知道我应该对表单采取什么行动..

my question is that i dont know what should i give action to a form..

推荐答案

你想给出处理表单的 URL,像这样:

You want to give the URL where the form will be processed, like this:

<form method="post" action="http://example.com/processform/">

介绍了 action 属性 这里.

这篇关于必需的属性“动作"未标明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆