Implementation of tags directive.