Skip to content
No results
  • Home
  • Blog
  • Tutorials
    • Mysql
    • PHP
    • PHP OOP
    • API
    • Jquery
    • AJAX
    • Javascript
    • JSON
    • Bootstrap
    • WordPress
    • HTML & CSS
  • Framework
    • Laravel 10
    • CakePHP 4
    • CodeIgniter 4
  • Payment Gateway
  • Tools
    • Try Online Editor
  • Live Demo
WebsCodex – Programming Blog, Web Development Tutorials

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.

  • Home
  • About us
  • Privacy Policy
  • Terms & Conditions
  • Contact us
  • Disclaimer
  • Sitemap
WebsCodex – Programming Blog, Web Development TutorialsWebsCodex – Programming Blog, Web Development Tutorials
  • Home
  • Blog
  • Tutorials
    • Mysql
    • PHP
    • PHP OOP
    • API
    • Jquery
    • AJAX
    • Javascript
    • JSON
    • Bootstrap
    • WordPress
    • HTML & CSS
  • Framework
    • Laravel 10
    • CakePHP 4
    • CodeIgniter 4
  • Payment Gateway
  • Tools
    • Try Online Editor
  • Live Demo
WebsCodex – Programming Blog, Web Development TutorialsWebsCodex – Programming Blog, Web Development Tutorials
Home Bootstrap How to Create Hostinger Login Page in HTML and CSS 2023

How to Create Hostinger Login Page in HTML and CSS 2023

  • WebsCodexWebsCodex
  • September 10, 2023
  • HTML & CSS
build hostinger log form page using html css

Hostinger one of the most popular hosting and domains provider platforms worldwide, Hostinger has a user-friendly login page that captures our attention with its sleek and intuitive design. Have you ever wondered how they create such a visually appealing login page? Well, Look no further!

In this beginner-friendly blog post, I’ll walk you through the process of creating a responsive hostinger login page using only HTML and CSS. You’ll learn how to create interactive and responsive forms, position elements on the page, and style them to match the Hostinger aesthetic.

By the end of this blog post, you’ll understand how HTML and CSS work together to create a visually appealing and user-friendly form that looks great on all devices. So, let’s waste no time and start the steps to creating a Hostinger login form page!

  • Steps To Create Hostinger Login Page in HTML and CSS
  • Create HTML Page
  • Create CSS Page
  • Conclusion 

Steps To Create Hostinger Login Page in HTML and CSS

To create a Hostinger login or sign-in page using HTML and CSS, follow these step-by-step instructions:

  • Create a folder. You can name this folder whatever you want, and inside this folder, create the mentioned files.
  • Create an index.html file. The file name must be index and its extension .html
  • Create a style.css file. The file name must be style and its extension .css
  • Download and place the Images folder in your project directory. This folder includes the Netflix logo and the hero background image.

To start, add the following HTML codes to your index.html file: This code includes various elements such as navigation, headings, paragraphs, a form, input fields, a button, and links. I’ve also included default form validation using the required attribute in the input elements.

See also  Build Analog Clock using html css and javascript

See also

  1. Form Validation Using Jquery
  2. How To Create Login Attempt Limit Form In PHP Using MySQL Database
  3. Registration & Login with Mobile OTP verification using PHP with mysql
  4. Registration and Login using PHP OOPs Concepts
  5. Registration & Login with Email OTP verification using PHP Mysql
  6. Implement captcha code login validation in PHP with Mysql
  7. CakePHP 4 Form Model Validation with Example
build hostinger login form using html css

Create HTML Page

First, paste the following codes into your index.html file.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Log in to Hostinger</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div class="container-fluid">
        <div class="brand-logo mt-4 ms-4">
            <img src="img/hostinger-logo-dark.svg" alt="Hostinger logo">
        </div>
        <div class="login-form mt-5">
            <div class="row">
                <h3 class="text-center mb-25 login-title">Log in</h3>
                <form class="d-flex justify-content-center align-items-center flex-column w-100" accept="" method="POST">
                    <div class="social-login-block w-100 mt-4 mb-5">
                        <a class="login-with-google"><img src="img/Google-Logo.png" width="20px" title="Log in with Google"></a>&nbsp;&nbsp;&nbsp;
                        <a class="login-with-facebook"><img src="img/facebook-logo.webp" width="20px" title="Log in with facebook"></a>
                    </div>
                    <div class="col-3 mb-3" style="margin-bottom:12px">
                        <div class="or-divider">
                            <span>or</span>
                        </div>
                    </div>
                    <div class="col-3 mb-4">
                        <input type="email" class="login-input" id="email" placeholder="Email">
                    </div>
                    <div class="col-3 mb-4">
                        <input type="password" class="login-input" id="password" placeholder="Password">
                        <div class="login-icon">
                            <i class="bi bi-eye-fill"></i>
                        </div>
                    </div>
                    <div class="d-grid gap-2 col-3 mx-auto">
                        <button class="btn btn-primary btn-lg login-btn h-button" type="button">Log in</button>
                    </div>
                    <div class="col-3 mb-4 text-center">
                        <p><a href="#">Forgot password?</a></p>
                        <p>Not a member yet? <a href="register.html">Choose a hosting plan</a> and get started now!</p>
                    </div>
                </form>
            </div>
        </div>
    </div>
  </body>
</html>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $(".login-icon i").on('click', function(event) {
            event.preventDefault();
            if($("#password").attr('type') == 'password'){
                $("#password").attr('type', 'text');
                $('.login-icon i').css("color", "#6747c7");
            }else if($("#password").attr('type') == 'text'){
                $("#password").attr('type', 'password');
                $('.login-icon i').css("color", "");
            }
        });
    });
</script>

Create CSS Page

Next, add the following CSS codes to your style.css file to achieve a design that looks like the Netflix login page. This code includes different styles for elements such as color, font, background, border, etc., and makes the page responsive for all devices. Feel free to customize these styles according to your preferences.

See also  Registration & Login with Email OTP verification using Jquery AJAX with PHP Mysql

style.css

 body{
    font-family: Muli,sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #2f1c6a;
}
.login-title{
    font-size: 24px;
    color: #2f1c6a;
    font-weight: 700 !important;
    font-family: Muli,sans-serif;
}
.social-login-block{
    text-align: center;
}
.login-with-google{
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 14px 24px;
}
.login-with-facebook{
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 14px 24px;
    background-color: #1877F2;
}
.login-btn{
    background-color: #6747c7 !important;
    border-radius: 4px !important;
    border-radius: 3px;
    padding: 15px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 1px solid #673de6;
    transition: all .3s ease-in-out;
}
.login-btn:hover{
    background-color: #6610f2;
}
.or-divider::after,
.or-divider::before{
    color: #979797;
    border-top: 1px solid #ccc;
    content: " ";
    display: inline-block;
    margin-top: 0px;
    vertical-align: middle;
    width: 47%;
}
.or-divider,span{
    color: #979797;
    font-size: 14px;
}
p {
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 25px;
}
a{
    color: #6747c7;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}
.login-icon{
    cursor: pointer;
    display: flex;
    margin-bottom: 0;
    max-width: 24px;
    overflow: hidden;
    position: absolute;
    right: 590px;
    margin-top: -35px;
}
.login-icon i{
    font-size: 20px;
    color: #6c757d;
}
.login-input{
    border-radius: 4px !important;
    position: relative;
    display: block;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.37);
    border-radius: 4px;
    background-color: transparent;
    margin: 0px auto;
    padding: 6px 4px 4px 14px;
    height: 50px;
    outline: none !important;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.85);
    border:1px solid #d9d9d9;
}

label {
    display: none;
    padding: 0 6px;
    font-size: 15px;
    font-weight: 400;
    cursor: text;
}

.login-input:focus {
    color: #6c757d;
    font-size: 15px;
    border: 1px solid #6f42c1;
    transition: all 0.15s ease-in-out;
}

Conclusion 

In conclusion, creating a Hostinger inspired login page can be a valuable project for beginner web developers. It provides a great opportunity to dive into various aspects of web development, such as creating responsive forms, styling elements, and even incorporating floating label input animations.

By following the steps outlined in this post, I hope you’re able to create a responsive Hostinger login page using only HTML and CSS. To understand the code better, you should experiment with it. To further enhance your web development skills, I recommend you try recreating the other login form designs that are available on this website.

See also  Build Instagram like App in HTML CSS and JavaScript

If you encounter any problems while creating your Hostinger login page, you can download the source code files for this Hostinger login or sign-in page project for free by clicking the Download button. You can also view a live demo of it by clicking the View Live button.

Download Source Code

You can always support by sharing on social media or recommending my blog to your friends and colleagues.  If you have any suggestions or problems about this tutorial, please comment on the  form below.😊

# hostinger login# HTML AND CSS# LOGIN# Login Form
how to create analog clock in html css and javascript
Previous Post Build Analog Clock using html css and javascript
Next Post Build a Calculator using JavaScript, HTML and CSS in 2023
How To Make A Calculator Using HTML CSS And JavaScript

RELATED BLOG POSTS

how to create analog clock in html css and javascript
Build Analog Clock using html css and javascript
How To Make A Calculator Using HTML CSS And JavaScript
Build a Calculator using JavaScript, HTML and CSS in 2023
Make Instagram clone using HTML CSS and JavaScript
Make Instagram clone using HTML CSS and JavaScript

Leave a ReplyCancel Reply

Your email address will not be published. Required fields are marked *




POPULAR POSTS

  • How to Send Bulk Emails in PHP using PHPMailer with Ajax jQuery
  • Razorpay Payment Gateway Integration in PHP
  • How to Created PHP CRUD using OOPS with MYSQLi in MVC
  • Create User Registration and Login using PHP OOPs Concepts
  • Generate PDF File From MySQL Database Using PHP




Currently Trending

Send bulk emails using php mailer function in php with ajax jquery
How to Send Bulk Emails in PHP using PHPMailer with Ajax jQuery
Rozarpay Payment Gateway Integration in PHP Step by Step
Razorpay Payment Gateway Integration in PHP
registration and login using php oops concepts
Create User Registration and Login using PHP OOPs Concepts
PHP CRUD Application using OOP with MYSQL
How to Created PHP CRUD using OOPS with MYSQLi in MVC

About WebsCodex

WebsCodex is a free online resource on programming blog and web development for beginners to advance. It’s delivered the best and fresh articles for students and our readers to skill up as they would like to. we are share multiple technologies tutorials.

Customer Area

  • About us
  • Contact us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions
  • About us
  • Contact us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions

Quick Links

  • How To
  • Live Demo
  • Try Online Editor
  • Interview Questions
  • Advertise on Webscodex
  • How To
  • Live Demo
  • Try Online Editor
  • Interview Questions
  • Advertise on Webscodex

Copyright © 2023 WebCodex.com All rights reserved