Calling the search engine in the page takes Baidu as an example

Calling the search engine in the page takes Baidu as an example
Today, it suddenly occurred to me that it would be cool to call powerful search engines like Google and Baidu on my own web pages.

So I looked up information online, and I didn’t expect it to be just a matter of a few lines of code.

The following is a code snippet that calls Baidu:

Copy code
The code is as follows:

<!--Call Baidu engine in the page-->
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Calling Baidu Engine</title>
</head>
<body>
<div id="container">
<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="upload/2022/web/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"></div>
</form>
</div>
</body>
</html>

How about it? Simple enough, I was wondering how difficult it would be.

<<:  Summary of new usage examples of computed in Vue3

>>:  Use CSS to achieve three-column adaptive layout (fixed width on both sides, adaptive in the middle)

Recommend

Detailed explanation of server-id example in MySQL master-slave synchronization

Preface When we build a MySQL cluster, we natural...

How to view the execution time of SQL statements in MySQL

Table of contents 1. Initial SQL Preparation 2. M...

Example code for implementing stacked carousel effect with HTML+CSS+JS

Effect: When the slideshow moves in one direction...

Common ways to optimize Docker image size

The Docker images we usually build are usually la...

A brief discussion on several ways to pass parameters in react routing

The first parameter passing method is dynamic rou...

Methods and steps for deploying go projects based on Docker images

Dependence on knowledge Go cross-compilation basi...

Some experience in building the React Native project framework

React Native is a cross-platform mobile applicati...

Docker uses Supervisor to manage process operations

A Docker container starts a single process when i...

Implementation of tomcat image created with dockerfile based on alpine

1. Download the alpine image [root@docker43 ~]# d...

Linux CentOS 6.5 Uninstall, tar and install MySQL tutorial

Uninstall the system-provided MySQL 1. Check whet...

Detailed steps to install docker in 5 minutes

Installing Docker on CentOS requires the operatin...

Implementation of nacos1.3.0 built with docker

1. Resume nacos database Database name nacos_conf...

Detailed explanation of group by and having in MySQL

The GROUP BY syntax can group and count the query...

How to install and configure WSL on Windows

What is WSL Quoting a passage from Baidu Encyclop...