Coder Social home page Coder Social logo

hegdepavankumar / login-with-user-authentication Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 47 KB

In authentication, the user or computer has to prove its identity to the server or client. Usually, authentication by a server entails the use of a user name and password.

Home Page: https://imhegde.github.io/login-with-user-authentication/

License: MIT License

HTML 48.40% JavaScript 21.55% CSS 30.06%
css html authentication bootstrap front-end-development js login-page password uiux validdate javascript

login-with-user-authentication's Introduction

login-with-user-authentication

GitHub GitHub top language GitHub last commit ViewCount

Output

login


  • Live Preview : here

How to Login?

Username :- admin
Password :- admin@123
Press the Enter. User Successfully Log In, if you want to log out click on the Logout Button on the Home page.

Overview

We'll design a login page using HTML and CSS. A login page in HTML collects information from the user and has a submit button to send the details for server-side operations. However, our objective here is to design a login page and not to deal with the backend tasks.

Pre-requisites

  • HTML forms
  • CSS
  • Flexbox and its properties
  • JavaScript

What Are We Creating?

The login page uses HTML and CSS for the structuring and styling. We'll first create the simple structure with HTML and then move to make it look great with CSS. This is what our final output will look like:

HTML

We’ll start with the HTML, as it is the one responsible for the information displayed on the page. In other words, first, we will write and structure all the information contained in the page without worrying about style (CSS) or interactivity (JavaScript). Analyze the complete HTML file for as long as you want and when you’re ready move on to the explanation.

As usual in HTML files, we have two parts: the and the . The former includes metainformation about our web page, like the character encoding used, the title of the page (the name you see in the tab of your browser), and references to the CSS and JavaScript files that this HTML file will make use of. Note that there’s a defer attribute in the <script> tag so that the JavaScript script is only executed after the HTML is fully loaded.

CSS

Now we have the CSS, in other words, the style of our page. To modify each element in our HTML file, we can select them using ids, classes, or the tag names themselves, though the last option is discouraged. You see, the styles of more specific CSS selectors overwrite the styles of less specific ones. For example, the styles of an id selector overwrite those of a class selector, and class selector styles overwrite those of a tag name selector. In other words, always make your CSS selectors as specific as possible to affect only the elements you want to be affected.

JavaScript

For starters, we get all the elements that we’ll need to work with using JavaScript: the login form, the login button, and the login error message. We do it by calling the method document.getElementById, passing it the id of the element we are looking for. Also, since the values of those three variables will not change, that is, the variables will always refer to the exact same elements, then we declare all three as const

Instructions

1). Fork this repository
2). Clone the forked repository
3). Add your contributions (code or documentation)
4). Commit and push
5). Wait for the pull request to be merged

Creator [🔝](# login-with-user-authentication)

(https://github.com/hegdepavankumar). This Project is Created by:-

|
@hegdepavankumar
|


Show some  ❤️  by starring some of the repositories!


if you like what I do, maybe consider buying me a coffee/tea 🥺👉👈

Buy Me A Coffee

login-with-user-authentication's People

Contributors

hegdepavankumar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

geekguruu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.