How to create a search in the html script didnt work

Version 1

    Can someone take a look at my code and tell me what i did wrong or does the code just not work