As i am recently using tags and i donno much about it.
Since you are 'recently' using tags and 'donno' much about it, its better that you do some serious reading first. It will help more than all the code anybody could provide you with.
Here's a good tutorial to get started.
cheers,
ram.