Tags are a way to categorize questions. They are brief and customizable, as every site is different and will want to categorize their content appropriately. Up to five tags can be applied to each question.

Tags can be applied in many ways. We've found that many communities share a few common kinds of tags that

  • identify a language
  • draw attention from a department
  • label a product

If you have any questions about how tags can help you organize your content and make relevant questions more discoverable to users, reach out to us. We can set up a time to learn more about your needs and help you improve your community.

Creating tags

Tags are added when asking a question. Start typing your tag name in the Tags field. As you start typing, the field will suggest tags that already exist and show how often they are used. Pressing Tab will automatically complete the first suggested tag, or the arrow keys can be used to pick a tag which can be selected with the Enter key or Space Bar.

If no tags are suggested, or the tag suggestions are not relevant, a new tag will be created when the question is posted. To add more than one tag, you can press the Space Bar between each.

Adding tags to and Removing tags from a question

Tags can be added when a question is asked (see Creating tags above) or they can be added later by Editing the question. New tags can be created when editing a question.

To remove a tag from a question, edit the question and click the x icon on the target tag. Then, click Save Edits. The tag will be removed from the question.

Tag synonyms

Sometimes through routine use, multiple tags will be created for the same purpose. For example, coffee and espresso might both be created for questions about the availability of caffeine in the lunch room. A particularly jittery user might tag a question with coffees or espressos as well, pluralizing an existing tag. Tag Synonyms allow a site to set a way to redirect all of these to a single tag that points to content concerning caffeine. If a user starts to type a tag synonym, Stack Overflow for Enterprise will suggest the appropriate tag and automatically correct a tag if a tag synonym is typed out in full.

There are two paths to creating synonyms. Users with the appropriate privilege can Suggest a synonym by clicking on any tag to go to the tag page, and then clicking Synonyms. Once a user has suggested a synonym, other users with the appropriate privilege can vote on it. In addition, any Administrator can approve the synonym by going to the Tags page, clicking tag synonyms on the footer, and clicking Approve next to the appropriate synonym.

Administrators can go directly to the Tag Synonyms page as above (or navigate to /tags/synonyms directly) and click Create a Tag Synonym. The synonym is created immediately.

Tag synonyms can be removed on the Tag Synonyms page by clicking the x button next to a tag synonym row.

Merging and Renaming tags

Sometimes, multiple tags are created in the system before synonyms can be created. For example, there may be ten questions tagged coffee and ten tagged espresso, when the community is best served by a caffeine tag.

By going to the tag page and clicking on the affected tag, an Administrator can click Merge to merge a tag with a target tag. Optionally, a tag synonym can be created for the tab being merged so that future users who use the tag coffee will be automatically redirected to caffeine.

Administrators can also optionally Merge tags when creating a tag synonym (see Tag synonyms).

To rename a tag, follow the above steps to merge a tag into a new name.

Deleting tags

There is no delete function for tags. Tags that are not associated to any questions will be removed from the system during automated maintenance, which may take up to a few days. However, this won't prevent a user from recreating the tag on a future question.

If you want to assure a tag won't appear on another question, the best thing to do is Merge it with another tag and create a Tag Synonym. The Tag Synonym will make sure future attempts to create the tag are redirected to the appropriate tag.