HTML Code:
<div>
<p><dfn>Code Snippet</dfn>: a piece of code that can be replicated and inserted elsewhere in a page or a site.</p>
</div>
Often we repeat a structure over and over, with only the contents changing, not the markup code that wraps it. If using CSS and a class, the structure may even maintain its presentation and positioning properties. Most HTML editors offer a way to store and retrieve snippets.
Similar to templates, snippets are not meant as templates, as much as chunks of repeated code. Code that appears in the template for a site pretty much covers the core page layout, where code in a snippet will confine itself to a small block of markup that is not usually included in the actual template, or may repeat a small section of the template.