How to make prompts for input?

Good day!
The question is.
Suppose there is a text input field in which user enters certain queries.
(Dog, cat, parrot, goat...;) )
And how to do so when he begins to enter "To" he has a list of suggestions "Tolo" "Togreen"

And this is the same question as to each of these queries to assign your link.

Thanks in advance for your help. Do not judge strictly)
June 14th 19 at 21:00
3 answers
June 14th 19 at 21:02
Need an array of all words used in prompts, stuff. And as you type words to filter by the entered characters. Of course sloppy work and expensive, but you won't have a neural network to write.
))) - shau commented on June 14th 19 at 21:05
June 14th 19 at 21:04
Yes, thank you, but how to each word link? ((( - shau commented on June 14th 19 at 21:07
June 14th 19 at 21:06
There is a tag <datalist></datalist> https://webref.ru/html/datalist

Find more questions by tags CSSPHPJavaScriptHTML