43

When I'm posting a question on Stack Overflow, how many tags should I select? Is it better to use just a few key tags, or to use as many applicable tags as I can find?

For example, if I have a question about CSS3 animations, should I do all these tags:

Or just simply and be done?

2
  • 2
    Well, consider which tags people are likely to follow. If you only tagged css-animations, I would guess not too many users keep that as a favorite tag so they'll miss it. On the other hand, lots of users probably favorite css, meaning their homepage will be curated to include it. Don't go overboard though. Commented Dec 24, 2014 at 20:20
  • 1
    Less might be better, but it could never be more. (And yes, I know the saying; I just don't like its lack of logic) :-)
    – Luis Mendo
    Commented Dec 27, 2014 at 18:34

3 Answers 3

46

There's usually sort of a happy medium for tags, where two is better than one and three is better than 5. The optimal number of tags depends on the question, of course: ideally, you want to identify all of the core topics without hitting too many tangential ones. A good start is to include the language you're working in, and then the specific library or API you're working with:

Then ask if there's anything that identifies the topic of your question even more specifically. For instance, if your question is specific to that part of animation, or if your question is in regards to a behavior specific to that browser.

In all cases, try to avoid just throwing a bunch of related tags onto the question.

7
  • 30
    So basically, three is the number thou shalt tag, and the number of the tagging shall be three. Four shalt thou not tag, neither tag thou two, excepting that thou then proceed to three. Five is right out! Commented Dec 25, 2014 at 17:30
  • I think this is bad advice: "A good start is to include the language you're working in". In the case of Frameworks, which are likely to be the source of a big chunk of new questions, is pointless to add the language tag. Say you track the JavaScript tag and you'll see questions for Angular, Ember, Backbone, Knockout, etc. Not helpful, because probably I'll be able to answer questions for only 2, maybe 3, frameworks out of the hundreds that may exist. Also, typical framework questions are of the form "How to do X with framework Y" and not directly related to the programming language.
    – givanse
    Commented Dec 25, 2014 at 23:27
  • 4
    Depends heavily on the question, @givanse. If you know the language is irrelevant, then great - don't use a language tag. But often, you won't know, or you'll guess wrong - there's an old joke about asking how to add numbers using jQuery that applies here. See also: meta.stackexchange.com/questions/32446/…
    – Shog9
    Commented Dec 25, 2014 at 23:32
  • 1
    I think, to contradict the first comment, it is not number but logic. Logically css describes the language, ccs3 describes the version, and css-animations describes the topic, tags like html would not add any value in terms of tags since...well that is kinda implied by use of CSS and animations is too broad and could reference other questions about animations in general
    – Sammaye
    Commented Dec 26, 2014 at 18:54
  • "Depends heavily on the question, @givanse. If you know the language is irrelevant, then great - don't use a language tag. But often, you won't know" that only apply to OP while asking the question, right? Because if I know with certain what is relevant or irrelevant to the question I can apply fitting tags.
    – Braiam
    Commented Dec 26, 2014 at 19:12
  • Applies to any author/editor, @braiam. Confusion is hardly limited to askers.
    – Shog9
    Commented Dec 26, 2014 at 19:29
  • 3
    @givanse and Shog9 Relevant
    – keyser
    Commented Dec 27, 2014 at 16:02
13

You should select tags that make scope of the question clear for future readers and attract the right experts to the question to answer it. Experts tend to watch specific high level tags (like or ) so always including one of those types of tags is a good idea. The more obscure the tag, the less people will be actively watching it. Any other tags help narrow down the context for someone scanning the question. For example, I watch but tend to skip because I'm not usually suited for answering Sidekiq questions.

A common rule of thumb is to ask yourself, "Would a expert be able to solve this problem?" If the answer is "yes," that tag is a good candidate for the question.

Use version tags if your question only applies to that specific version. For example, use the tag if the question is only relevant to CSS3. If the question is also applicable to CSS2, for example, then just is good enough.

General or broad tags, like , are tricky to get right. I recommend avoiding these tags when there is a technology specific tag that can be used instead (like ). General tags should be used for questions that don't depend on a specific implementation.

In your specific example, I would choose to tag with and .

1
  • 7
    Please, no. This is the reasoning that leads to c++ on C questions, followed by complaints when C++ answers are given. Tags are not chosen based on what experts you want to contact; they need to accurately describe the question.
    – Ben Voigt
    Commented Dec 27, 2014 at 5:56
4

I have found numerous people, typically novices, to max out the five tags per question, and sometimes these are very questionable associations.

There seems to be some kind of an assumption that the more tags you put, the more attention you get. Albeit true, since they often do not really read the tag description, it sometimes simply ends with the kind of attention they not intended.

IMHO one should look for the right tags. Sometimes you will use five, sometimes it will be two or three. That's all fine, as long as it makes sense.

2
  • "sometimes simply ends with the kind of attention they not intended". Yep, people sometimes get really annoyed when getting posts not reasonably relevant to the tags they filter on... Commented Dec 27, 2014 at 19:22
  • 1
    A 'tag sentence' is a very strong signal of a question what wants closure.
    – bmargulies
    Commented Dec 27, 2014 at 21:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .