"输入"内部“形式”不会验证 [英] "input" inside "form" won't validate

查看:71
本文介绍了"输入"内部“形式”不会验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计们 -


页面

http://www.pwilson.net/submit-demo.html


将无法验证。 http://validator.w3.org 上的验证员告诉我我

不能在表格内输入。


请问某位灵魂请告诉我我做错了什么?


谢谢!


- Pete Wilson

Hi folks --

The page at

http://www.pwilson.net/submit-demo.html

will not validate. The validator at http://validator.w3.org tells me I
can''t have an input inside a form.

Would some kind soul please tell me what I''m doing wrong?

Thanks!

-- Pete Wilson

推荐答案

以前在comp.infosystems中。 www.authoring.html ,Pete Wilson

< pe ** @ pwilson.net>说:
Previously in comp.infosystems.www.authoring.html, Pete Wilson
<pe**@pwilson.net> said:
嗨伙计们 -


G''day。
http://www.pwilson.net/submit-demo.html

不会验证。 http://validator.w3.org 上的验证员告诉我,我可以表格内部没有输入。


这不是它的意思。它说你不能在表格中直接输入

元素*。

请问有些灵魂请告诉我我做错了什么?
Hi folks --
G''day.
http://www.pwilson.net/submit-demo.html

will not validate. The validator at http://validator.w3.org tells me I
can''t have an input inside a form.
That''s not quite what it is saying. It is saying you can''t have an input
element *directly* within a form.
Would some kind soul please tell me what I''m doing wrong?




< form>不能直接包含内联元素,所以< input>需要

在另一个块元素中,例如< fieldset>或者< div> (最好是

fieldset)。


-

Mark Parnell
http://www.clarkecomputers.com.au


On 2004年11月23日14:42:33 -0800,Pete Wilson< pe ** @ pwilson.net>写道:
On 23 Nov 2004 14:42:33 -0800, Pete Wilson <pe**@pwilson.net> wrote:
页面

http://www.pwilson.net/submit-demo.html

将无法验证。 http://validator.w3.org 上的验证员告诉我,我可以表格内部没有输入。

请问某些灵魂请告诉我我做错了什么?
The page at

http://www.pwilson.net/submit-demo.html

will not validate. The validator at http://validator.w3.org tells me I
can''t have an input inside a form.

Would some kind soul please tell me what I''m doing wrong?




严格HTML要求FORM元素的子元素可能只是
块级或SCRIPT元素。 INPUT既不是。在DIV中包含

控件,或者更有意义的元素(如果可能的话)。


BODY元素具有相同的约束。


Mike


-

Michael Winter

替换.invalid与.uk通过电子邮件回复。



Strict HTML requires that the children of FORM elements may only be
block-level, or SCRIPT elements. An INPUT is neither. Contain the form
controls in a DIV, or a more meaningful element (if possible).

The BODY element has the same constraint.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.


Pete Wilson写道:
Pete Wilson wrote:
页面

http://www.pwilson.net/submit-demo.html

不会验证。 http://validator.w3.org 上的验证员告诉我,我可以在表单中没有输入。
The page at

http://www.pwilson.net/submit-demo.html

will not validate. The validator at http://validator.w3.org tells me I
can''t have an input inside a form.




我认为在严格的DTD中,你必须将元素包含在一个表格中

in块级容器。尝试使用字段集,例如


< form action =" URL" method =" get">

< fieldset>

< input ....>

< / fieldset>

< / form>


-

Chris Simon
os ****** @ slcszetnet.co.uk
http://www.users.zetnet.co.uk/csimon/


* *摆脱所有SLC直接回复**



I think in Strict DTDs, you have to enclose the elements within a form
in a block level container. Try using a fieldset, e.g.

<form action="URL" method="get">
<fieldset>
<input....>
</fieldset>
</form>

--
Chris Simon
os******@slcszetnet.co.uk
http://www.users.zetnet.co.uk/csimon/

** Get rid of all SLCs to reply directly **


这篇关于&QUOT;输入&QUOT;内部“形式”不会验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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