HTML到XHTML - Google搜索表单 [英] HTML to XHTML - Google search form

查看:75
本文介绍了HTML到XHTML - Google搜索表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将某些页面从HTML过渡转换为XHTML严格,在W3C验证

。我已经阅读了关于此的广告,并且感到难过。


Google有一个表格,您可以在自己的网页上搜索

无论是网络还是常驻域(搜索表单所在的站点)
我已经使用了很长一段时间的
,成功配置它为

在W3C验证器验证。


有效的过渡代码是:

------------------------- -----

< FORM method = GET action =" http://www.google.com/search">

< input type =隐藏名称=即值= ISO-8859-1>

<输入类型=隐藏名称= oe值= ISO-8859-1>

< TABLE>

< tr>< td>< a class =" highlight2" href =" http://www.google.com/">

< IMG SRC =" ./ google_x_03a.gif"边界=" 0" ALT =" Google">< / a>< / td>

< td>


< INPUT TYPE = text name = q size = 31 maxlength = 255 value ="">

< INPUT type = submit name = btnG VALUE =" Search">

<字体大小= -1>

<输入类型=隐藏名称=域值=" http://yoursite.com">


< ; input type = radio name = sitesearch value =""> WWW

< input type = radio name = sitesearch

value =" http://ed.mullen.home.comcast.net"检查>所有的yoursite.com


< / td>< / tr>< / TABLE>

---------- --------------------


让我们忘记表格代码;我把它剥掉了。我并不担心此时的视觉格式化,只能验证为XHTML Strict。


我一直在努力弄清楚代码需要如何包含在

中以验证为XHTML Strict。


当前经过验证的HTML过渡页面位于: http://edmullen.net


感谢任何帮助。


-

Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net http://abington.edmullen.net

Converting some pages from HTML transitional to XHTML strict, validating
at W3C. I have read ad naseum about this and am stumped.

Google has a form you can include on your own Web page for searching
either the Web or the resident domain (site that the search form is on)
that I''ve been using for quite a while, successfully configuring it to
validate at the W3C validator.

The valid transitional code is:
------------------------------
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=ISO-8859-1>
<input type=hidden name=oe value=ISO-8859-1>
<TABLE>
<tr><td><a class="highlight2" href="http://www.google.com/">
<IMG SRC="./google_x_03a.gif" border="0" ALT="Google"></a></td>
<td>

<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Search">
<font size=-1>
<input type=hidden name=domains value="http://yoursite.com">

<input type=radio name=sitesearch value=""> WWW
<input type=radio name=sitesearch
value="http://ed.mullen.home.comcast.net" checked> ALL of yoursite.com

</td></tr></TABLE>
------------------------------

Let''s forget the table code; I''ve stripped it out. I''m not worried about
visual formatting at this point, only validating as XHTML Strict.

I have struggled to figure out how the code needs to be contained in
order to validate as XHTML Strict.

The current validated HTML transitional page is at: http://edmullen.net

Any help gratefully appreciated.

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net

推荐答案

决定为人类的利益做些事,Ed Mullen

< ed@edmullen.net>在comp.infosystems中喷出。 www.authoring.stylesheets:
Deciding to do something for the good of humanity, Ed Mullen
<ed@edmullen.net> spouted in comp.infosystems.www.authoring.stylesheets:
将某些页面从HTML过渡转换为严格的XHTML,


为什么? HTML 4.01 Strict会更有用。


< snip form>我一直在努力弄清楚代码是如何被包含在
中以便验证为XHTML Strict。
Converting some pages from HTML transitional to XHTML strict,
Why? HTML 4.01 Strict would be more useful.

<snip form> I have struggled to figure out how the code needs to be contained in
order to validate as XHTML Strict.




验证为严格(XHTML或HTML) ,你的< input>元素需要包含在块元素中,例如,
< fieldset>。


-

Mark Parnell

============= ===================================== ===

Att。 Google网上论坛用户 - 这是您的最后警告:
http:// www .safalra.com / special / googlegroupsreply /


Mark Parnell写道:
Mark Parnell wrote:
决定为人类的利益做点什么,埃德马伦
< ed@edmullen.net>在comp.infosystems中喷出。 www.authoring.stylesheets:
Deciding to do something for the good of humanity, Ed Mullen
<ed@edmullen.net> spouted in comp.infosystems.www.authoring.stylesheets:
将某些页面从HTML过渡转换为XHTML严格,
为什么? HTML 4.01 Strict会更有用。
Converting some pages from HTML transitional to XHTML strict,
Why? HTML 4.01 Strict would be more useful.




怎么样?

< snip form>



How so?

<snip form>

我有努力弄清楚代码需要如何包含在
中以验证为XHTML Strict。
I have struggled to figure out how the code needs to be contained in
order to validate as XHTML Strict.



要验证为严格(XHTML或HTML),您的< input>元素需要包含在块元素中,例如< fieldset>。



To validate as Strict (XHTML or HTML), your <input> elements need to be
contained in a block element, e.g. <fieldset>.




谢谢。我会调查一下。


-

Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http:// abington。 edmullen.net



Thanks. I''ll look into that.

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net


决定为人类的利益做些事,Ed Mullen

< ed@edmullen.net>在comp.infosystems中喷出。 www.authoring.stylesheets:
Deciding to do something for the good of humanity, Ed Mullen
<ed@edmullen.net> spouted in comp.infosystems.www.authoring.stylesheets:
怎么样?




发送XHTML为text / html认为有害
http://www.hixie.ch/advocacy/xhtml


拒绝XHTML
http://www.spartanicus.utvinternet.ie/no -xhtml.htm


-

Mark Parnell

========== ======================================== ===

Att。 Google网上论坛用户 - 这是您的最后警告:
http:// www .safalra.com / special / googlegroupsreply /



Sending XHTML as text/html Considered Harmful
http://www.hixie.ch/advocacy/xhtml

Say NO to XHTML
http://www.spartanicus.utvinternet.ie/no-xhtml.htm

--
Mark Parnell
================================================== ===
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/


这篇关于HTML到XHTML - Google搜索表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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