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.
-
For improvement it should, yes. But that's optional though.– πάντα ῥεῖCommented Nov 21, 2014 at 6:11
-
1As long as you keep in mind that the answer should be complete even if the link does not work anymore, sure.– ivarniCommented Nov 21, 2014 at 7:44
-
3For the case of HTML/JS you can use stack snippets.– Lucas TrzesniewskiCommented Nov 21, 2014 at 8:25
-
I don't think that is appropriate, but the question is good so have my +1.– Geeky GuyCommented Nov 21, 2014 at 14:10
Add a comment
|
1 Answer
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.