A code snippet is a small reusable code. These are some commonly used code blocks while coding a template or extension. When you design your own template in Joomla, you can use the PHP code snippets to extend your website. Joomla code snippets aid you to perform simple tasks like adding script files, module positions, image, links and much more. These are very helpful for a beginner.