问题
This explains how to add a search bar in html: Creating a Google search box using HTML form
What if we want to previously append some of our own text to the search? for example,
when I input a text into the search, google should search for "hotels at input-text"
This creates the search bar:
<form role="search" method="get" id="searchform" class="searchform" action="http://www.google.com/search?hl=en-GB&source=hp&+q=">
<div id="gform">
<label class="screen-reader-text" for="s"></label>
<input type="text" value="" name="q" id="s">
<input type="submit" class="btn fa-input" value="" style="font-family: FontAwesome;">
</div>
</form>
来源:https://stackoverflow.com/questions/57687805/i-want-to-append-my-own-text-beforehand-to-a-google-search-in-html