How to add a site search function to a site using XHTML / HTML?

I really want to learn how to create my own search engine for my site. I have certain buttons and tags, but it is not looking. I can not understand the HTML or XHTML code for the actual search on the site.

This is the code that I still have:

<p class="search">
    <label>SEARCH</label>
    <input name="search" type="text" class="txt" />
    <input name="search-btn" type="submit" class="btn" value="SEARCH" />
</p>

Thank!

+3
source share
4 answers

You cannot provide a search function using only HTML and XHTML, unless you use a standardized form to get some kind of external search engine (such as Google) to do the job.

JavaScript, , .

, , PHP Python, - , .

+5
+3

HTML , . 3 :

+2
+1
source

Source: https://habr.com/ru/post/1749432/


All Articles