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

Solve the problem that Docker cannot ping the host machine under Mac

Solution Abandon the Linux virtual machine that c...

Zabbix monitors the process of Linux system services

Zabbix automatically discovers rules to monitor s...

Centos7 mysql database installation and configuration tutorial

1. System environment The system version after yu...

VMware virtual machine installation Linux system graphic tutorial

This article shares the specific steps of VMware ...

This article takes you to explore NULL in MySQL

Table of contents Preface NULL in MySQL 2 NULL oc...

Learn MySQL in a simple way

Preface The database has always been my weak poin...

HTML form component example code

HTML forms are used to collect different types of...

Windows system mysql5.7.18 installation graphic tutorial

MySQL installation tutorial for Windows system do...

HTML basic structure_Powernode Java Academy

Many times when learning web page development, th...

css Get all elements starting from the nth one

The specific code is as follows: <div id="...

Node.js+express+socket realizes online real-time multi-person chat room

This article shares the specific code of Node.js+...

React-native sample code to implement the shopping cart sliding deletion effect

Basically all e-commerce projects have the functi...

How does the MySQL database implement the XA specification?

MySQL consistency log What happens to uncommitted...

Write a React-like framework from scratch

Recently I saw the article Build your own React o...