Hey everyone!
As mentioned in my previous thread, how to improve my login form, I am making prefabs for me to plop into my web projects; this allows me to keep my motivation high while creating website templates quickly and efficiently. You can check out my previous thread by clicking here.
I will use the account-details template prefab on pages where users can edit their account details. All backend functions would come after implementing template prefab. In other words, it won't be working right away. I would still need to set up the backend.
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.
As mentioned in my previous thread, how to improve my login form, I am making prefabs for me to plop into my web projects; this allows me to keep my motivation high while creating website templates quickly and efficiently. You can check out my previous thread by clicking here.
I will use the account-details template prefab on pages where users can edit their account details. All backend functions would come after implementing template prefab. In other words, it won't be working right away. I would still need to set up the backend.
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="account-details-Contain">
<form>
<!-- Display name/ Public -->
<label for="displayName">Display Name:</label>
<input type="text" id="displayName" placeholder="Enter a name which others can refer you by.">
<!-- User Credentials -->
<label for="username">Username</label>
<input type="text" id="username" placeholder="Malcolm">
<label for="email">Email</label>
<input type="email" id="email" placeholder="[email protected]" value="[email protected]">
<label for="cPassword">Current Password</label>
<input type="password" id="cPassword" value="******">
<label for="nPassword">New Password</label>
<input type="password" id="nPassword" placeholder="Enter new password">
<label for="ncPassword">Confirm Password</label>
<input type="password" id="ncPassword" placeholder="Confirm new password.">
<!-- End of User Credentials -->
<!-- User Roles-->
<input type="radio" id="Admiin" value="user" placeholder="user"><label for="adminRole">Admin</label>
<input type="radio" id="userRole" value="user" placeholder="user"><label for="userRole">User</label>
<!-- End of User Roles-->
<!-- User DOB -->
<label for="userDOB">Date of Birth</label>
<input type="date" id="userDOB">
<!-- End User DOB-->
<!-- Form Actions -->
<input type="button" value="Save" id="account-save" >
<input type="reset" value="Reset" id="account-field-reset">
<!-- End Form Actions-->
<hr>
<!-- Account Removal -->
<h3>Danger Zone</h3>
<label for="userDelete">Delete Account</label>
<input type="button" value="Delete Account" id="userDelete">
<!-- End Account Removal -->
</form>
</div>
GitHub - malcolmjr96/account-details
Contribute to malcolmjr96/account-details development by creating an account on GitHub.
github.com