Here’s a basic example of an HTML login form:
```
```
Before you can use this HTML code, you must have a server-side script (here, “action\_page.php”) to handle the form data submission.
Note: HTML forms are susceptible to numerous security risks. Login forms should always be set up properly to ensure they are secure. Protect your form with a verification token, encrypt or salt your passwords, and never show users any exception information.
This example does not focus on styling. Use CSS to beautify the forms as per your needs.