Template in WordPress is a file that defines part of a webpage used by a WordPress theme.
For example, header.php is the template file for the header area of your website.
Your theme may have a separate template for footer area, for post and page types, templates for sidebar and so on.