Sign in to follow this  

search option for html pages

This topic is 4720 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi everyone, i have to do a tutorial,which must have a search option. so if a user must have to find a particular tutorial he types the keywords and my prog should display all the related tutorial. how can i design such tutorial using html? can anyone help me.

Share this post


Link to post
Share on other sites
I don't think you can do this with just HTML, you're going to want to look into a server-side scripting language like PHP.

Share this post


Link to post
Share on other sites
Quote:
Original post by ballack
ok i know scripting lang -asp
now how can i have a search option using this?

Well I don't do much web stuff, but what I would do is save the actual tutorial itself (the text) in a file, so that you can load it up using ASP and search it through that. Whenever you run into occurances of the keyword[s] in question, then print out the text around it using ASP. I've never used ASP, but I'm sure the idea would be the same as PHP.

Share this post


Link to post
Share on other sites
<meta> is used by large commercial search engines to help index pages and give important information about the contents of a page.

If you'd like, you could implement code in your search script to read these meta tags and process their information, however, there's no "special function" that "uses" meta tags... you have to write the code your self.

Share this post


Link to post
Share on other sites
Sign in to follow this