Hey all!
So over the last few months, I've been sharpening my HTML/CSS skills. I have been watching youtube tutorials, doing exercises on Code Academy and following The Odin Project. Recently I came up with a project for myself but was having difficulty getting started, so I came up with an idea of making prefab website sections. For an instance, this thread will go over one of the few prefabs that I have already made, a login form.
The purpose of these prefabs is to help me build website templates quickly and efficiently. I simply just grab the code and plop in the template that I am working on. It may not work for everyone but I really find this helps me with keeping my HTML/CSS skills sharpened and helps me keep my motivation to work on various projects.
Now I would like some help in seeing what I can do to improve my code, e.g. code formatting, more comments, other solutions etc.
So over the last few months, I've been sharpening my HTML/CSS skills. I have been watching youtube tutorials, doing exercises on Code Academy and following The Odin Project. Recently I came up with a project for myself but was having difficulty getting started, so I came up with an idea of making prefab website sections. For an instance, this thread will go over one of the few prefabs that I have already made, a login form.
The purpose of these prefabs is to help me build website templates quickly and efficiently. I simply just grab the code and plop in the template that I am working on. It may not work for everyone but I really find this helps me with keeping my HTML/CSS skills sharpened and helps me keep my motivation to work on various projects.
Now I would like some help in seeing what I can do to improve my code, e.g. code formatting, more comments, other solutions etc.
HTML:
<link href="css/stylesheet.css" rel="stylesheet">
<div class="loginContainer">
<form class="loginForm">
<div class="loginCredentials">
<label for="usernameEmail">Username or Email</label>
<input type="text" id="usernameEmail">
<label for="passwordField">Password:</label>
<input type="password" id="passwordField">
<span class="forgotPasswordText">
<a href="#">Forgot your password?</a>
</span>
</div>
<div class="loginRegister">
<input type="submit" value="Login">
<input type="submit" value="register">
</div>
</form>
</div>
CSS:
input {
display: block;
}
.loginRegister > input {
display: inline-block;
}
GitHub - malcolmjr96/login
Contribute to malcolmjr96/login development by creating an account on GitHub.
github.com