Call the search engine in the page to invoke Baidu as an example.

Time:2020-5-22

Today it suddenly occurred to me that calling a powerful search engine like Google and Baidu on your own page must be cool.

So I went online to look up the information, but I didn’t expect to do something with a few lines of code.

Here is a code segment calling Baidu:

Copy code

The code is as follows:

<! — call the Baidu engine in the page >
<!doctype html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
< title > call Baidu engine < / Title >
</head>
<body>
<div>
<form action=”http://www.baidu.com/baidu” target=”_blank”>
<div align=”center”>
<input name=tn type=hidden value=baidu>
<a href=”http://www.baidu.com/”>
<img src=”https://imgs.developpaper.com/imgs/baidulogo_clarity_80_29.gif” alt=”Baidu” align=”bottom” border=”0″></a>
<input type=text name=word size=30>
< input type = “submit” value = “Baidu search” >
</form>
</div>
</body>
</html>

What about? It’s simple enough, and I think how hard it is.