在页面中调用搜索引擎以调用百度为例分享

今天突然想到,在自己的页面中调用google、百度这样强大的搜索引擎想必很酷。

于是上网查了资料,没想到就几行代码的事。

下面是调用百度的一个代码段:

复制代码代码如下:
<!–在页面中调用百度引擎–>
<!doctype html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<title>调用百度引擎</title>
</head>
<body>
<div id=”container”>
<form action=”https://www.baidu.com/baidu” target=”_blank”>
<div align=”center”>
<input name=tn type=hidden value=baidu>
<a href=”https://www.baidu.com/”>
<img src=”https://img.baidu.com/search/img/baidulogo_clarity_80_29.gif” alt=”Baidu” align=”bottom” border=”0″></a>
<input type=text name=word size=30>
<input type=”submit” value=”百度搜索”></div>
</form>
</div>
</body>
</html>

怎么样?够简单吧,还想着有多难呢。

—-想了解在页面中调用搜索引擎以调用百度为例分享 的全部内容且更多的html语言教程关注<计算机技术网(www.ctvol.com)!!>

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/htmltutorial/490398.html

(0)
上一篇 2020年11月12日
下一篇 2020年11月12日

精彩推荐