How to create php login register system?

Hello Experts,
How to create a PHP login register system?
I would like to know more about html connected to the PHP programming system.
I want to create a webpage that allows the users to register first then log in the username and password after the validation of the registration process.
Thank you.
