2

If I'm answering a question and I find myself writing code that lends itself to a live demonstration, as in the case of HTML and JavaScript, should I link to a page where readers can see it in action? My instinct is to do so, but I don't know if it's considered good form.

4
  • For improvement it should, yes. But that's optional though. Commented Nov 21, 2014 at 6:11
  • 1
    As long as you keep in mind that the answer should be complete even if the link does not work anymore, sure.
    – ivarni
    Commented Nov 21, 2014 at 7:44
  • 3
    For the case of HTML/JS you can use stack snippets. Commented Nov 21, 2014 at 8:25
  • I don't think that is appropriate, but the question is good so have my +1.
    – Geeky Guy
    Commented Nov 21, 2014 at 14:10

1 Answer 1

2

For some time now we've had snippets (see the link in Lucas's comment). For pure HTML, CSS and Javascript questions, external sources should not be required.

I know may users love JSFiddle and other sites that provide similar service. Just keep in mind that if all you got to show is an external resource, and the link to that resource is dead... Then all downvotes and close votes are not only justified, they are the correct thing to do. A question that is completely self-contained here seems like a better way to ask.

You must log in to answer this question.

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