Tumgik
#fbloginpagehtmlcode
Text
Create a Facebook login page using Html code and CSS: without css
Tumblr media
We are going to create a Facebook login page using HTML and CSS. I'm going to show you the important information step-by-step for that. You can use html on Facebook, You just need to create a simple Facebook application and embed an HTML document in it. HTML Structure: Let's work on creating our basic HTML structure first. Facebook Login Page
Facebook
Connect with friends and the world around you on Facebook. Log In Forgot Password ? Create New Account CSS to create social login form * {box-sizing: border-box} /* style the container */ .container { position: relative; border-radius: 5px; background-color: #f2f2f2; padding: 20px 0 30px 0; } /* style inputs and link buttons */ input, .btn { width: 100%; padding: 12px; border: none; border-radius: 4px; margin: 5px 0; opacity: 0.85; display: inline-block; font-size: 17px; line-height: 20px; text-decoration: none; /* remove underline from anchors */ } input:hover, .btn:hover { opacity: 1; } /* add appropriate colors to fb, twitter and google buttons */ .fb { background-color: #3B5998; color: white; } .twitter { background-color: #55ACEE; color: white; } .google { background-color: #dd4b39; color: white; } /* style the submit button */ input { background-color: #04AA6D; color: white; cursor: pointer; } input:hover { background-color: #45a049; } /* Two-column layout */ .col { float: left; width: 50%; margin: auto; padding: 0 50px; margin-top: 6px; } /* Clear floats after the columns */ .row:after { content: ""; display: table; clear: both; } /* vertical line */ .vl { position: absolute; left: 50%; transform: translate(-50%); border: 2px solid #ddd; height: 175px; } /* text inside the vertical line */ .inner { position: absolute; top: 50%; transform: translate(-50%, -50%); background-color: #f1f1f1; border: 1px solid #ccc; border-radius: 50%; padding: 8px 10px; } /* hide some text on medium and large screens */ .hide-md-lg { display: none; } /* bottom container */ .bottom-container { text-align: center; background-color: #666; border-radius: 0px 0px 4px 4px; } /* Responsive layout - when the screen is less than 650px wide, make the two columns stack on top of each other instead of next to each other */ @media screen and (max-width: 650px) { .col { width: 100%; margin-top: 0; } /* hide the vertical line */ .vl { display: none; } /* show the hidden text on small screens */ .hide-md-lg { display: block; text-align: center; } } also you can check how to create social login form on w3school using html code.
Login with Social Media or Manually
or Login with Facebook Login with Twitter Login with Google+ Or sign in manually: Sign up Forgot password? CSS Style: The structure of the HTML page needs to be first-ordered, including setting the colour of the background phone. You can use CSS to do all of this. You need to use a Java script to make the code already discussed work like an actual login page. This JavaScript function works properly when you type in the username and password and click on the login button. The entire fb login page is secure because it is securely designed to connect your details to the stored database server. Once Facebook is safe, it needs to be tested. It covers a wide range of different types. @import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Poppins", sans-serif; background: #f2f4f7; } .content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .flex-div { display: flex; justify-content: space-evenly; align-items: center; } .name-content { margin-right: 7rem; } .name-content .logo { font-size: 3.5rem; color: #1877f2; } .name-content p { font-size: 1.3rem; font-weight: 500; margin-bottom: 5rem; } form { display: flex; flex-direction: column; background: #fff; padding: 2rem; width: 530px; height: 380px; border-radius: 0.5rem; box-shadow: 0 2px 4px rgb(0 0 0 / 10%), 0 8px 16px rgb(0 0 0 / 10%); } form input { outline: none; padding: 0.8rem 1rem; margin-bottom: 0.8rem; font-size: 1.1rem; } form input:focus { border: 1.8px solid #1877f2; } form .login { outline: none; border: none; background: #1877f2; padding: 0.8rem 1rem; border-radius: 0.4rem; font-size: 1.1rem; color: #fff; } form .login:hover { background: #0f71f1; cursor: pointer; } form a { text-decoration: none; text-align: center; font-size: 1rem; padding-top: 0.8rem; color: #1877f2; } form hr { background: #f7f7f7; margin: 1rem; } form .create-account { outline: none; border: none; background: #06b909; padding: 0.8rem 1rem; border-radius: 0.4rem; font-size: 1.1rem; color: #fff; width: 75%; margin: 0 auto; } form .create-account:hover { background: #03ad06; cursor: pointer; } /* //.........Media Query.........// */ @media (max-width: 500px) { html { font-size: 60%; } .name-content { margin: 0; text-align: center; } form { width: 300px; height: fit-content; } form input { margin-bottom: 1rem; font-size: 1.5rem; } form .login { font-size: 1.5rem; } form a { font-size: 1.5rem; } form .create-account { font-size: 1.5rem; } .flex-div { display: flex; flex-direction: column; } } @media (min-width: 501px) and (max-width: 768px) { html { font-size: 60%; } .name-content { margin: 0; text-align: center; } form { width: 300px; height: fit-content; } form input { margin-bottom: 1rem; font-size: 1.5rem; } form .login { font-size: 1.5rem; } form a { font-size: 1.5rem; } form .create-account { font-size: 1.5rem; } .flex-div { display: flex; flex-direction: column; } } @media (min-width: 769px) and (max-width: 1200px) { html { font-size: 60%; } .name-content { margin: 0; text-align: center; } form { width: 300px; height: fit-content; } form input { margin-bottom: 1rem; font-size: 1.5rem; } form .login { font-size: 1.5rem; } form a { font-size: 1.5rem; } form .create-account { font-size: 1.5rem; } .flex-div { display: flex; flex-direction: column; } @media (orientation: landscape) and (max-height: 500px) { .header { height: 90vmax; } } } Valid Login Credentials: Special care has to be taken when logging in. You have to verify that you use e-mail and facebook log in by using the password successfully and redirecting it to the appropriate page. Invalid Login Credential: The difference between a valid login and an illegal login is that this method is used. For example, when the user leaves the wrong password blank in one of the two spaces, this invalid fb login page security is used to keep the login page secure. Account Lockout: The system works when the user tries to log in and fails in that attempt. Also, care has to be taken to ensure that the user does not log in until the user name and password are used. Password Recovery: When a user forgets his password, take a special test to see how he will retrieve the password and verify that this is a unique test for password recovery. Password strength authentication: When a user creates a password, make sure you give that user clear guidance to confirm that it is secure and robust. Keep in mind functionality: This is an option when a user is clicking login and verifying that it works correctly. Session management: It's the rule for each user to log out after a while, requiring 17 continuous checks on different devices to make sure the system is running automatically. Cross-Site Request CSRF: One of the most frequent cyber-attacks on logins is CSRF. It has to be verified that login page is protected from such attacks, so logins should be rejected from external sites. Cross-site scripting: Cyber attackers can inject infected code into the website when XSS is unsafe in login posts, so the vulnerability has to be checked. Sql Injection: You have to constantly verify that you are protected from the attacks of modern sql injections. Browser and device compatibility: You have to test consistent performance and response to emphasize how your login page looks and runs smoothly on the browser as well as the operating system. Localization and language support: The login page you create needs to be separated from how it displays in different languages as well as how the location works. Handling errors: You need to look at constant messages when user login can be passed on to the user's cyber attackers so you can understand how this login page application handles unexpected errors or exceptions. Captcha and bot detection: Automated cyber or bot attackers visit page frequently; the protected system is used to prevent attacks that are trying to login to your page. Two-Factor Authentication: To ensure that the user who logged in is the same, a code has to be sent to the mobile device to verify whether its existence is authenticated properly. Security Top Article and HTTPS: Make sure the login page is using HTTPS for secure communication. Safety policy HTTPs Check for strict traffic safety in the presence of headers. Performance: When it comes to overloading users, it needs to be constantly addressed in terms of how it works and how it will respond best. Accessibility: Check the login page for compliance to make sure it is usable by a person with a disability. UX: Evaluate the user's overall experience and the design of the post. Third-Party Integration: If the login page is integrated with other services, then I can understand that you have to make sure that it is working smoothly. Read the full article
0 notes