<!--百度搜索-->
<div align=center><iframe border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="200" height="30"
src=http://unstat.baidu.com/bdun.bsc?tn=dabaoku&cv=1&cid=31577&csid=102&rkcs=2&bgcr=EDEDEB&ftcr=FF0000&rk=1&bd=1&bdas=0>
</iframe></div>
<p>
<!--google-->
<div align=center><FORM method=GET action=http://www.google.com/search target=_blank>
<input type=hidden value=GB2312>
<input type=hidden value=GB2312>
<INPUT TYPE="hidden" VALUE="zh-CN">
<A HREF=http://www.google.com/ target=_blank>
<IMG SRC=http://www.google.com/logos/Logo_40wht.gif border="0" ALT="Google" height="20px"></A><INPUT TYPE=text name=q size=12 maxlength=255
value="">
<INPUT type=submit name=btnG VALUE="搜索">
<input type=hidden name=domains value="这里输入你的网站地址" ></br>
<input type=radio name=sitesearch value="这里输入你的网站地址" checked>全球搜索
<input type=radio name=sitesearch value="" > 本站搜索<br>
</font></FORM></div>
简洁一点的百度搜索框嵌入代码(听杨中科老师讲课得来的):
<form action="http://www.baidu.com/s">
<input type="text" name=wd id=kw / >
<input type="submit" value="百度一下 "/>
</form>
发现html虽然简单,但是要是将html各种标签和标签的属性运用自如还是需要花功夫的,如何真正的做网页的话,加上css+JavaScript,就够学的了,那就不简单了!
下面是以上三段程序代码的实现效果
好像第一段在csdn博客上实现有点问题,下面这张图片是它的正常实现效果: