The best way of creating a custom page template is to start from the best source material. I recommend taking inspiration from popular themes such as the default theme (Twenty Seventeen). Once you have solid foundations, you could then alter the code with custom CSS and JavaScript.

The process of creating a custom page template is easy. The process starts with creating a new file in the theme folder. Add the following comment to the file:

The custom page template file would now look something like this:

On the page editing screen, scroll down to Page Attributes, where you will find the Page Template dropdown menu. Select the new page template you created earlier.

Create a New Custom Page

No in order to create a new custom page, login to the WordPress Admin Panel. In the left menu, go to Pages >> Add New.
On the page editing screen, scroll down to Page Attributes, where you will find the Page Template dropdown menu. Select the new page template you created earlier.

Conclusion

In this tutorial I have discussed how to create custom page template in WordPress. This is a very simple process that allows you to create custom pages that extend the functionality of your WordPress website.