If you are purely trying to open the homepage from your login page, then you can use this code at the top of your code:
<form method="post" action="http://www.yourdomain.com/index.html">
or if you don't have a domain/hosting yet, then replace the http:// part to the path to the file where your index.html (or whatever you've called your other file)
This won't do any verification on the login form, but it will open the other page. For verification purposes it'd be better to use javascript/php. If you don't know javascript yet, I suggest you use this solution for now. Walk before you run and all that..
Answer from Rachel Gallen on Stack OverflowVideos
Can I add social login options to my HTML login page?
How can I make my login page more secure?
How do I ensure my login form is responsive on all devices?
Hey everyone!
I'm excited to share this YouTube tutorial video on how to create a website with login and signup forms using HTML, CSS, and JavaScript. You'll learn how to create the HTML structure, style it with CSS & make CSS animation, and add interactive functionality using JavaScript.
Check out the video here: https://youtu.be/-RgAfHUEplQ
I've also included screenshots from the video:
Sign up form Login formFeel free to watch the video, follow along, and leave any comments or questions you may have. I'm here to help and provide support throughout your learning journey!
I'm passionate about sharing my knowledge and helping others grow their web development skills. I hope this tutorial video proves to be a valuable resource for you.
Thank you for your time, and I look forward to hearing your feedback. Happy coding!