{"section":"tutorials","requestedLocale":"en","requestedSlug":"how-to-create-a-page-template","locale":"en","slug":"how-to-create-a-page-template","path":"docs/en/tutorials/storefront/layout/how-to-create-a-page-template.md","branch":"main","content":"> Tutorial valid only for Legacy CMS Portal stores.\n\nThe page template is a model designed to define an HTML structure for displaying page content.\n\nYou can use this template to reference the JS and CSS files that will be used on a specific page, as well as other templates, like shelf templates or subtemplates.\n\nIn addition, page templates are also responsible for including components such as banners, suggestion shelves and other features available on the platform.\n\nAt VTEX, the user has the option of either creating new templates or editing existing templates.\n\nTo create a new template, we recommend that you use a default template as a base.\n\nCheck out the walk-through:\n\n1. In the VTEX Admin, access **Storefront > Layout**.\n2. Click on the **CMS** folder.\n3. Click on __HTML Templates __.\n4. Just below, click on __New template__.\n5. Fill in the __Template Name__ field.\n> ❗ When filling in the **Template Name**, avoid using the following reserved words, as this can hinder your store's performance and interfere with the functioning of VTEX Admin pages. See the list of reserved words below. <ul> <li>`a`</li> <li>`meta`</li> <li>`api`</li> <li>`admin`</li> <li>`app`</li> </ul>\n6. Then fill in the __Template XHTML__ box with your template code. \n![4 1](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/storefront/layout/how-to-create-a-page-template_1.png)\n7. Click on the __Save Template__ button.\n\nTo edit an existing template, the process is almost identical.\n\nBut instead of clicking on the New Template option, you must click on the template you want to edit.\n\nCheck out the complete walk-through below:\n\n 1. In the VTEX Admin, access **Storefront > Layout**.\n 3. Click on the __CMS__ folder.\n 4. Click on the desired template option.\n 5. Make the necessary changes.\n 6. Click on the __Save Template__ button."}