How to add and remove a Tag in a plugin

Is there any function or feature that works same as a tag and then by clicking on it will list all those posts?