Stack Snippets are runnable inline code samples. Currently HTML, CSS, and JavaScript are supported. Use this tag for bug reports, feature requests, and discussions explicitly relevant to these snippets and their underlying technologies.

Stack Snippets were introduced on September 16, 2014 via a Stack Exchange blog post. They are an onsite alternative to external sources like JSFiddle and are meant to encourage users to provide a Minimal, Complete, and Verifiable example along with pertinent questions.

Currently, only HTML, CSS, and JavaScript are supported, but other languages may be on the way.

Security is a major concern, and one measure that has been taken to combat potentially malicious snippets is the location of the hosting for the snippets: they are hosted on an external domain to prevent malicious snippets from modifying the page or account of the user running the code.

Stack Snippets can be tested in the Sandbox.

history | excerpt history