What is the structure of a template?

Check out this article to learn more about the template structure while you are creating a new template.