Well, you could do this a few ways. One, you could create a .htaccess file for username and password prompts. This would easily protect certain areas of your site. You can read a comprehensive guide
here.
Second, you could use PHP (or, some variant) and MySQL to create a login page. Though, assuming your skill level as n00b, I would choose the first option.