Did this article
help you?

This helped me

Answering Questions on Stack Overflow: Tips & Best Practices

Do you know the answer to a coding question and want to offer your advice? Stack Overflow gives you a chance to help someone by answering other people's technical questions, and this How.com.vn article teaches you how to do that. This guide will also cover basic formatting and general best practices, plus what to expect when you answer a question on Stack Overflow.

Section 1 of 3:

Answering Questions

  1. How.com.vn English: Step 1 Go to https://stackoverflow.com/questions....
    Go to https://stackoverflow.com/questions. You can use any web browser, like Chrome or Safari, to visit this site and answer questions.
    • You can sort the questions by newest, active, bountied, unanswered, and more. If you want to browse questions, you'll find more under "Hot Network Questions" on the right side of the page.
    • To narrow your results, you can look for specific tags. Tags appear on the right side of the page under "Related Tags." Click More related tags to see more tags.
  2. How.com.vn English: Step 2 Find a question that you think you can answer well.
    Click on the title of the question (it's blue) that you want to answer. You'll be redirected to that thread.
    Advertisement
  3. How.com.vn English: Step 3 Read the question and other answers carefully.
    Figure out if you have any additional, relevant information to add. If not, then answering is not going to be the best action for you to take since repeated or poor answers will result in you getting a negative reputation.
  4. How.com.vn English: Step 4 Fill in your answer in the Answer Box.
    You can add formatting including bold, italics, links, and images to enhance your answer at the top of the box.
    • If you don't see an answer box, your account may have been banned for lots of low-quality or poorly rated answers. To lift the ban, the Stack Overflow system must decide that you have more highly rated and positive reviews than negative ones.[1]
  5. How.com.vn English: Step 5 Sign in or enter the information to post as a guest.
    When you're finished writing your answer, you'll need to sign in or post as a guest with some pertinent information, like your name and email address.
  6. How.com.vn English: Step 6 Click Post Your Answer.
    The page will reload and your answer should show up in the next few minutes.
    • If you need help formatting your answer visit Stack Overflow's editing help page here: http://stackoverflow.com/editing-help
    • Once you have posted your answer, consider finding another question by clicking on a related tag, or re-searching the question page.
    Advertisement
Section 2 of 3:

Basic Formatting and Best Practices

  1. How.com.vn English: Step 1 Press Ctrl+K to toggle indenting as code.
    Using the escaped block (<pre><code>), your text will include a grey block of about 4 indented spaces before a new line. The blocks here prevent your code from automatically running in the comments.
  2. How.com.vn English: Step 2 Press Ctrl+I (Italics) or Ctrl+B (Bold) to format your text.
    This is useful for putting emphasis on specific areas of your text.
  3. Step 3 Enter "</br>" to enter a line break.
    If you don't want all your text in one line, you can use that HTML code to break up your text.
  4. How.com.vn English: Step 4 Press Ctrl+L to create a link.
    If you don't have text selected when you press Ctrl + L, you will be asked to create a link. If you have text selected, that text will be the link to your outside source.
    • There are tons more formatting options, but those are the only supported formats in comments.[2]
    Advertisement
Section 3 of 3:

What to Expect

  1. Step 1 If you provide the best answer, it may be marked as "accepted."
    An accepted answer is indicated by the checkmark next to the answer.
    • An accepted answer is not a 100% guarantee to work for everyone else; it is merely an answer that worked for the original author of the question.
    • An accepted answer gets the answerer +15 reputation and the question author +2 reputation.
    • To answer your own question, you have to wait 48 hours after the question is posted and you will not earn any reputation bonuses.[3]
  2. How.com.vn English: Step 2 Your reputation on the site fluctuates as you answer, edit, and ask questions.
    You can gain reputation in a multitude of ways, including having a question, answer, or article upvoted, or having an answer marked as "accepted." You can also, however, lose reputation easily including having a question, answer, or article downvoted or if your post receives more than 6 spam warnings or offensive flags.
    • In the case of a bad reputation, deleting may not help. Instead, you need to garner more positive reviews than negative ones.[4]
    • The higher your reputation, the more privileges you have! A user with a very high reputation score has something like a moderator's toolbox, like 25,000 gets you access to the site's analytics.
    Advertisement


Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit

      Advertisement

      Tips

      • If the question is asking you to provide some examples of code, test the code in your answer before posting, as there's nothing more embarrassing than posting broken code.
      • If you know someone who might know the answer to a particular question, you can also email, tweet, or Facebook the question directly to them.
      Advertisement

      Warnings

      • Stack Overflow is a question-and-answer site, not a discussion forum. If you have input on something another user has posted, or want to thank somebody, leave it as a comment instead of posting a new answer.
      Advertisement

      About this article

      How.com.vn English: Darlene Antonelli, MA
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Darlene Antonelli, MA. Darlene Antonelli is a Technology Writer and Editor for How.com.vn. Darlene has experience teaching college courses, writing technology-related articles, and working hands-on in the technology field. She earned an MA in Writing from Rowan University in 2012 and wrote her thesis on online communities and the personalities curated in such communities. This article has been viewed 48,142 times.
      How helpful is this?
      Co-authors: 11
      Updated: June 27, 2022
      Views: 48,142
      Thanks to all authors for creating a page that has been read 48,142 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement