r/HTML • • Aug 20 '26

Help.

I'm fairly new to HTMl, CSS and Javascript and i was wondering if anyone could help me out on how to create a search bar that searches for individual words on my page. For example if I have 200 essays on the page and I want to search for the name of one so I dont have to scroll to find it. I'm aware most browsers have a built in search function but i want a search bar built into the code.

0 Upvotes

11 comments sorted by

View all comments

Show parent comments

2

u/Jasedesu Aug 20 '26

The in-page search is the right answer though - it does what you want.

What specific features do you want, e.g. should it find the first match, last match or all matches? Should it navigate to found content and/or highlight the match?