如何让浏览器知道网站有搜索引擎
how to make the browser know the website has a search engine
我用 HTML CSS 和 JavaScript 创建了一个网站,在 /search?q=(search query)
( and ) 有一个搜索引擎,我想要浏览器要知道我的网站有它,例如,当您访问任何堆栈交换社区时,当您写下 url 时,它会显示 google chrome 上的搜索选项,无需手动用户设置...如何为我的网站执行此操作?
我在 google 上搜索,但没有找到任何结果...
Google 以下:google search results search box
第一个结果:https://developers.google.com/search/docs/advanced/structured-data/sitelinks-searchbox
Google Search may automatically expose a search box scoped to your website when it appears as a search result, without you having to do anything additional to make this happen. This search box is powered by Google Search. However, you can explicitly provide information by adding WebSite structured data, which can help Google better understand your site.
还要检查其他结果。
我用 HTML CSS 和 JavaScript 创建了一个网站,在 /search?q=(search query)
(
我在 google 上搜索,但没有找到任何结果...
Google 以下:google search results search box
第一个结果:https://developers.google.com/search/docs/advanced/structured-data/sitelinks-searchbox
Google Search may automatically expose a search box scoped to your website when it appears as a search result, without you having to do anything additional to make this happen. This search box is powered by Google Search. However, you can explicitly provide information by adding WebSite structured data, which can help Google better understand your site.
还要检查其他结果。