{"section":"tutorials","requestedLocale":"en","requestedSlug":"subtemplates","locale":"en","slug":"subtemplates","path":"docs/en/tutorials/storefront/layout/subtemplates.md","branch":"main","content":"> Tutorial valid only for Legacy CMS Stores.\n\nSubtemplates are intended for small structures that could be reused in several Page Templates. Subtemplates work as _“includes”_.\n\nYou can create an HTML block that you intend to reuse, and then insert a call inside a Page Template. To create a subtemplate:\n\n1. In the VTEX Admin, access **Storefront > Layout > CMS** and go to the **Templates de Página > Subtemplates** folder.\n2. Click on the **Novo Subtemplate** option.\n3. Fill in the `Nome do Template` field.\n4. Paste your code on the `XHTML do Template:`field.\n5. Then, click on **salvar**.\n\nIn order to reference a Subtemplate inside a page Template, use the syntax below:\n\n`<vtex:template id=\"name-of-the-id\" />`\n\nFill in the `id` attribute with the name given to the subtemplate."}