Joomla provides many default templates to apply in your website, but if you want to create your own template, you have to create template files.
Create your template files:
To create your template file, first of all you have to create two file: ‘index.php’ and ‘templateDetails.xml’.
‘index.php’ files are those file where the entire markup goes in which you stick the Joomla includes. These can be seen as little hooks where joomla hangs up information on, like modules for example.
‘templateDetails.xml’ files are those file where you can see template details as a list of instructions to Joomla. This list must include the name of the template, the names of the files used in the template (images etc.) and the positions you want to use in your website.