Sign-in form best practice

  Рет қаралды 110,947

Chrome for Developers

Chrome for Developers

4 жыл бұрын

Use built-in, cross-platform browser features to create sign-in forms that are secure, accessible and easy to use.
Resource(s):
Sign-in form best practices → goo.gle/2NzgbDD
Related Playlist(s):
Day 3 → goo.gle/WDL20Day3
Subscribe to the Chrome Developers → goo.gle/ChromeDevs
Speaker:
Sam Dutton
#webdevLIVE #SameSite #useragentclienthints event: web.dev LIVE 2020; re_ty: Publish; fullname: Sam Dutton; product: Chrome - General;

Пікірлер: 113
@leeboyin945
@leeboyin945 4 жыл бұрын
01:59 Well formed HTML is the backbone of a good sign-in experience 04:34 Don't repeat inputs 04:57 Use buttons for buttons 07:13 Make sure inputs are clearly visible 07:40 Design for thumbs 08:00 Make text big enough 08:51 Warn of invalid input values 09:29 Help users start faster with input attributes 11:04 Prevent keyboards obscuring the sign in button 11:57 Help users avoid re-entering data with input name, id, type and autocomplete 14:25 Enable the browser to suggest a strong password 14:48 Add the required attribute to both email and password fields 15:03 Make sure to add a Show Password button to enable users to check the text they've entered 15:57 Validate data before submission 16:40 What you cannot measure, you cannot improve 17:35 Website performance 17:52 General guidelines: Don't make users hunt, keep it focused, minimize complexity, incentives sign in, allow email or phone, make password reset easy, link to terms and policies, keep branding and style consistent
@sparkplug8763
@sparkplug8763 4 жыл бұрын
Some of these are pretty obvious. If you don't do them, then you're probably just trying to get things done fast without quality checks which is ultimately bad for both parties. Edit: Thank you for the comprehensive list
@nelsoncruzg
@nelsoncruzg 4 жыл бұрын
Thank you!
@abdelghanimahammedi6149
@abdelghanimahammedi6149 3 жыл бұрын
Thank you for being you!
@swyxTV
@swyxTV 4 жыл бұрын
i could listen to this guy all day. pls make more of these basics best practices videos!
@Lifelightning
@Lifelightning 4 жыл бұрын
This is insanely useful, thanks for providing so many great sign-in tips. I learned a bunch!
@SaikatDey
@SaikatDey 4 жыл бұрын
Basics that no one taught us
@bren.r
@bren.r 4 жыл бұрын
Of course - user experience is at the bottom of everyone else’s priority list. The same goes for full test coverage. Not in my book 😉 all my code is fully tested and I have an eye for UI/UX.
@prijunkoirala2410
@prijunkoirala2410 3 жыл бұрын
Only expierence can teach us these.....
@kevinletterer4171
@kevinletterer4171 3 жыл бұрын
I wasn't looking for this because I didn't know how much I needed it. Thank you.
@marcusjt
@marcusjt 4 жыл бұрын
Very good indeed, particularly pleased to see accessibility getting so much attention! 👍 However, using the "autocomplete" attribute gives you FAR more control over what data the browser or other autocomplete agent (e.g. user/pass utility) tries to use, compared to using special "name" attribute values, from which different browsers will attempt to infer the right settings but they are not standard in anything like the same way autocomplete attribute values are. Also multi-step login is actually slower for more confident users, problematic for many password managers, and if the user has entered the email incorrectly then it's far more complicated for them to correct as they either have to go back to the first form and change it or use a new form with both email and password (which is all that was needed in the first place).
@bdafeesh
@bdafeesh 4 жыл бұрын
Fantastic guidelines that all make sense, and excellent production!
@emkisn
@emkisn 4 жыл бұрын
yesss, i love it. even being a beginner subject, I learned great tips that I didn't know existed, thanks a lot
@HoangHuynh
@HoangHuynh 4 жыл бұрын
Great content, and Sam is such a good speaker to deliver it!
@DanielPereira-xd4lw
@DanielPereira-xd4lw Жыл бұрын
Muchas gracias por las enseñanzas compartidas en este video. Excelente equilibrio entre: profundidad del tema, tiempo del vídeo, velocidad de locución, entre otros. Además de la capacidad de mantener el interés de el que lo ve. Videos como este deberían ser el estándar. Se nota que tomó tiempo de preparación.
@luis96xd
@luis96xd 3 жыл бұрын
Wow, this video was so amazing and helpful! I liked these best practices and I learned new pieces of code. Thank you so much! 😄
@NitinJadhav
@NitinJadhav 4 жыл бұрын
Loved this content, learned few new tricks. Thanks!
@basix250
@basix250 3 жыл бұрын
This is exactly what I was looking for. Thanks!
@nerdophile6945
@nerdophile6945 4 жыл бұрын
Best sign in form is no sign in form at all, that makes so much sense.
@MatsumotoKael13
@MatsumotoKael13 3 жыл бұрын
So simple and yet so powerful.
@TNothingFree
@TNothingFree 4 жыл бұрын
Very professional with awesome tips, Thanks!
@ananthaboudmanabhanthanika7335
@ananthaboudmanabhanthanika7335 4 жыл бұрын
15:00 no javascript is required. just "required" attribute is required ;-)
@billsomen7953
@billsomen7953 4 жыл бұрын
tell that to a react developer
@bren.r
@bren.r 4 жыл бұрын
Bill Somen 😂 using front end frameworks.
@billsomen7953
@billsomen7953 4 жыл бұрын
@@bren.r 🤣🤣🤣
@dasten123
@dasten123 4 жыл бұрын
Super cool!! More best practices videos please! :D
@iagobruno8845
@iagobruno8845 4 жыл бұрын
Thanks! I didn't know all these tips.
@VerifyBot
@VerifyBot 4 жыл бұрын
Great video, thanks alot! Watching out for new ones :D
@abhayamin8318
@abhayamin8318 4 жыл бұрын
Amazing video....such simple tips but so beneficial :)
@warraupe9373
@warraupe9373 3 жыл бұрын
Great and very useful video. Many thanks!
@devmrin
@devmrin 4 жыл бұрын
This was enlightening. Thanks!
@waymanharris1284
@waymanharris1284 4 жыл бұрын
Thank you for this!
@RomenumB
@RomenumB 3 жыл бұрын
Perfect! Thanks for that!
@RajatGuptaOnline
@RajatGuptaOnline 4 жыл бұрын
Very well explain, great content!!
@trollhunter200
@trollhunter200 4 жыл бұрын
Very helpful. Thanks a lot.
@Draugo
@Draugo 4 жыл бұрын
Speaking of sign-in, when will Chrome stop inserting saved login information to completely random form fields that have no indication that they would be anywhere near login?
@matrixRule127
@matrixRule127 4 жыл бұрын
Loved It, Loved It!!
@user-pm5pe7oc2f
@user-pm5pe7oc2f Жыл бұрын
thanks for usefull info Google team!
@beardymonger
@beardymonger 3 жыл бұрын
BRAVO!!!! More please :-)
@prijunkoirala2410
@prijunkoirala2410 3 жыл бұрын
This is gold!!
@TopicalAuthority
@TopicalAuthority 4 жыл бұрын
Great Video!
@UnknownShepard
@UnknownShepard 4 жыл бұрын
Great video!
@ricardoamendoeira5689
@ricardoamendoeira5689 4 жыл бұрын
Isn't defining sizes in terms of pixels a bad idea? There's a wild variety of resolutions at every screen size.
@mmn10088
@mmn10088 4 жыл бұрын
There are multiple places in the audio and slides where it should have said `autocomplete=current-password` and `autocomplete=new-password`, not `name=…`. The `autocomplete` attribute is standardized with predefined meanings for the values whereas the name can be whatever you want.
@perguth
@perguth 4 жыл бұрын
Read from the end: Could you kindly name some of the shown books in the background? 🐈 For one of 'em I would like to know the name :-)
@vipsylar6370
@vipsylar6370 4 жыл бұрын
Same here!
@WezPyke
@WezPyke 4 жыл бұрын
Very informative video.
@nusskugeldingsi
@nusskugeldingsi 4 жыл бұрын
Don't split sign-in fields across multiple pages/views. That makes it harder to use a password manager.
@madfury3179
@madfury3179 4 жыл бұрын
Does it work at all?
@theNittyGritty
@theNittyGritty 4 жыл бұрын
Am I missing something? I can't find anything under the mentioned codelab link (web.dev/codelab-sign-in-form ). Other than that, great summary of the best practices!
@nickspirit3
@nickspirit3 4 жыл бұрын
Here you go, web.dev/codelab-sign-in-form-best-practices/
@YoungDen
@YoungDen 4 жыл бұрын
@@nickspirit3 - Thank you
@yevgeniyshevchenko9120
@yevgeniyshevchenko9120 3 жыл бұрын
I was curious about how to work with passwords. Thanks for great video!
@funkygawy
@funkygawy 4 жыл бұрын
Does it bother anyone else that the bookcase doors are open? I guess there were probably some unwanted reflections.
@Oswee
@Oswee 4 жыл бұрын
Sooo goood! :)
@berndeckenfels
@berndeckenfels 4 жыл бұрын
One task at a time is quite annoying for auto type password managers
@bren.r
@bren.r 4 жыл бұрын
Not if done correctly - just ensure the password input visibility is hidden so it can still be auto filled then the password is already auto filled on the next screen for the user. No additional clicks necessary.
@berndeckenfels
@berndeckenfels 4 жыл бұрын
Brendan Rosa I prefer password managers which type into the GUI
@madboy5566
@madboy5566 4 жыл бұрын
@@berndeckenfels you aren't your user
@LucasKluser
@LucasKluser 3 жыл бұрын
@@berndeckenfels 1Password can fill it correctly
@Ostap1974
@Ostap1974 3 жыл бұрын
Why doesn't Chrome implement show password functionality as a standard part of ?
@adebiyial
@adebiyial 4 жыл бұрын
There's an issue with Chrome and Forms. I'd have termed it Webkit, but this issue doesn't appear on Edge. This has to do with the autocomplete. For a Login form, it only makes sense to add the autocomplete attribute to the inputs, and not for a Registration form. Chrome doesn't allow autocomplete=off and doesn't the autocomplete, it will autocomplete anyway. This presents an issue: once I log in to a site, save my password with my browser, anyone can steal my password because it also autocompletes my email and password on the Register page.
@madfury3179
@madfury3179 4 жыл бұрын
Does the autofill feature also work in a 2-stages login process (11:47)?
@kamalhm-dev
@kamalhm-dev 4 жыл бұрын
Yes
@felipehuggler
@felipehuggler 4 жыл бұрын
Thanks
@satyasashi5859
@satyasashi5859 4 жыл бұрын
KZbin web doesn't do autofocus on search box. Though it's obvious to search there, it takes extra work for most people to move mouse and click and then type. Helps a lot of lazy users like me. So please consider my request.
@berndeckenfels
@berndeckenfels 4 жыл бұрын
... and don't add any ad- or external trackers on password pages.
@Eltopshottah
@Eltopshottah 3 жыл бұрын
So much to learn so little time 😩
@smeel99
@smeel99 4 жыл бұрын
Nice explained
@Blaineworld
@Blaineworld 4 жыл бұрын
Woah, hold up! There are people who don’t use s for buttons?!
@davincis1
@davincis1 4 жыл бұрын
Home Happens to be like this too :)
@jonathonpenn1383
@jonathonpenn1383 3 жыл бұрын
!
@luis96xd
@luis96xd 3 жыл бұрын
Well, I was using input type="button" 🙁
@michaelkhalsa
@michaelkhalsa 6 ай бұрын
All the time, but probably not in the way you think. For example dynamically loading content in an area when there is a mouse over or a section comes into view, to improve page laod experience, or simplify development. Also many javascript extensions phone home for better or worse, such as changing content, etc. Think of a password manager.
@sharps8726
@sharps8726 4 жыл бұрын
Dont know why but my mind is going to Gumbiya Park the entire video.
@abdelghanimahammedi6149
@abdelghanimahammedi6149 3 жыл бұрын
4:36 even worse, some websites block you from copying and pasting to fill in those duplicate inputs "Stop It, Get Some Help"
@migrant_x
@migrant_x 3 жыл бұрын
Sections without headers are not valid at all ... why not using simple divs? Or just the label as the container? It works very well ...
@xtremescript
@xtremescript 4 жыл бұрын
Don't mess up input types, use inputmode attribute.
@bren.r
@bren.r 4 жыл бұрын
Yes the attention to detail in this video is awesome 👏
@blender_wiki
@blender_wiki 4 жыл бұрын
Text size is a huge issue in nowadays website (in app is even worst) Many young web designer don't understand that readiblity is more important than aesthetic.
@bren.r
@bren.r 4 жыл бұрын
It’s the Wild West. There are no standards people conform to anymore. It’s just a second thought.
@ricardoamendoeira5689
@ricardoamendoeira5689 4 жыл бұрын
Splitting the login into multiple steps as mentioned at 11:46 is really annoying for people using password managers :/
@WagonLoads
@WagonLoads 4 жыл бұрын
Another item that makes me abandon a site before I read the first word is a cookie farm site.. sites that force users to agree to cookie terms before you even know if the site is worth acknowledging. It's just as bad as the spam calls that say press 2 if you want to be removed from the call list. That only proves they got a live response and can add your number to a live user list.. Cookie farm sites have zero integrity in my book...
@V3LOXy
@V3LOXy 4 жыл бұрын
I literally hate when email and password are asked in multiple steps, it's really annoying with a password manager
@baronoke5432
@baronoke5432 4 жыл бұрын
I know right? It's like 1. Must have 6-12 characters (limiting only to 12 characters is a hassle sometimes) 2. At least one capital letter 3. At least one symbol or non-alphabetic character 4. Cannot be the same as your birthday or email (this one is just annoying, especially websites that aren't important, like game discussion forums)
@ADeeSHUPA
@ADeeSHUPA 4 жыл бұрын
@@baronoke5432 Indonesian
4 жыл бұрын
can i omit the submit button? I have a UX requirement. if the input completes 6 characters I should call the http request immediately. This is good? I think it kills accessibility.
@m12652
@m12652 4 жыл бұрын
Juan Crisóstomo sounds dodgy to me. Why six characters? Does it work if someone pastes into that input? What if the user does a typo, wasted submit etc.
@devilaoszwann7970
@devilaoszwann7970 4 жыл бұрын
I agree with m12652 , I suppose it's like a pin-code? I feel uncomfortable even when Windows/banks uses that format, I'd probably be sceptical to any untrusted website using it. I get that it's not doing anything out of the ordinary, but regular users don't know that, they might think they're tracked or hacked ir whatever. If it is a requirement, go for it, if you're working on an internal application for a company, sure, then it might be fine, but in that case maybe sso would be better omitting the loginform entirely? Using auto-signin in itself doesn't have to be bad, people are just not used to it. Also, do you get unlimited tries? Seem much faster to crack a system that automatically tells you if you typed your password wrong, or do you have to wait several seconds for it to validate on slow internet connection even when you know you mistyped the last number? It may cause many issues, but it's not bad in itself.
@bren.r
@bren.r 4 жыл бұрын
Do you mean like how 2FA works on Apple products that when the last digit is entered it makes the request? I think that’s great user experience. Less clicks. Of course if the response is invalid, inform the user and clear it lol.
@CaerelsJan
@CaerelsJan 3 жыл бұрын
15:41 Isn't it dangerous to show the password on screen? Let's say you have well-reviewed Chrome extension installed, but it ends up being secretly malicious trying to sniff your password. Doesn't changing your input type from password to text offer a big risk for security? I'm not an expert, so any info is welcome.
@mat80
@mat80 3 жыл бұрын
No, it doesn't make any difference. If a malicious extension can read your web pages, it can also read any password fields.
@CaerelsJan
@CaerelsJan 3 жыл бұрын
@@mat80 I see. Thanks
@priusscientia
@priusscientia 3 жыл бұрын
I hate forms, where e-mail address and password is asked in two steps... makes the use of a password manager even worse on desktop systems and also is annoying on mobile devices.
@reemnx
@reemnx 4 жыл бұрын
i had job interview and i asked to encrypt the password before POST to the server in the client side, that really sad
@eformance
@eformance 4 жыл бұрын
Why are you recommending pixel based padding today? A real problem I recently learned is that changing the font size on Android also changes the effective viewport scaling. Is there any reason not to use rems for all of my units? This is especially important given the font scaling that Android does -- so your unitless designs work correctly on each device. My 3000x1440 screen was effectively rendered to only 265 pixels wide in portrait if I selected 1 font tick larger than default. Things like Bootstrap don't even *support* that narrow of a width and require custom media queries!
@arupdash5904
@arupdash5904 3 жыл бұрын
Me: I wont be able to write any code, If i don't have google in my life. Google : Hey, we have videos as well where a guy sits in a corner and tell you what is smart and what is not.. For frrrrrrrreeeeeeeeeeee...........
@RobCoops
@RobCoops 3 жыл бұрын
Totally disagree with using px for any type of spacing, it is impossible to judge the true size of a pixel on a screen, after all a phone with a 4k screen has far smaller pixels than a phone with a 720 screen. The same goes for laptop and desktop a 4k screen can be anything from 65" to 17" a pixel varies wildly in size. Basically unless you are designing for a single viewport and know you will not ever be displaying on anything else do not use pixels in any of your positioning.
@jakearchibald
@jakearchibald 3 жыл бұрын
I get what you're saying, but that isn't how CSS works. In CSS an inch is 96 CSS pixels - it has nothing to do with the size of the device. In fact, devices of high & low density change the size of a CSS pixel to effectively scale content. Eg, many phones have a device pixel ratio of 2 or more, meaning each CSS pixel is 2 or more device pixels.
@sharps8726
@sharps8726 4 жыл бұрын
What's the business plan? What's the business name?
@billsomen7953
@billsomen7953 4 жыл бұрын
I DARE YOU to do some advertisement on this video
@m12652
@m12652 4 жыл бұрын
Hmmm... auto completing logins and passwords. Not a great idea in a shared environment as there’s no guarantee while the user is away from their desk that they locked their machine. Edit... forgot to say, brilliant video by the way. Thank you.
@dancovrboski9135
@dancovrboski9135 Жыл бұрын
Vo gogel se stretna so namohniot Makedonec koj napravi prolet za bitonot koe namohen ko gogel.
@AboAli-fq3qx
@AboAli-fq3qx 8 күн бұрын
😢😢؟
@texxs01
@texxs01 3 жыл бұрын
Remember folks, when Goggle says "best pratices" two things are important to note: 1- they don't follow these pratices 2- They are what's best for google for Web Designers to do, not what's best for the designer, developer or their client. they are what's best for Google.
@DannyvanHolten
@DannyvanHolten 3 жыл бұрын
I don't really get, why you're encouraging autoFocus, it's being warned about everywhere
@KR-uc9ei
@KR-uc9ei 3 жыл бұрын
11:41 is such a big NONO. Please never do this. Username and Password are part of one and the same form, so please never ever seperate them. This WILL mess up all kinds of tools including some accessibility features and/or password managers.
@TrabberShir
@TrabberShir 3 жыл бұрын
"get the basics right" a.k.a. Don't do what google has done with their forms.
@dancovrboski9135
@dancovrboski9135 Жыл бұрын
Nekoj me falı nekoj kydi koe neznam zemjata ə trkalesta sekoj ima pravo no nikoj maw vo zeminava topka nemozi həp dae stavi oti nalakomo ə hovehkoto oko nikoj dryk
@davidconnelly
@davidconnelly 3 жыл бұрын
NO GOOGLE: Not the best practices. YOUR practices. You don't own the web. Get over it.
Sign-up form best practices
13:31
Chrome for Developers
Рет қаралды 30 М.
Elon Musk fires employees in twitter meeting DUB
1:58
GeoMFilms
Рет қаралды 13 МЛН
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 161 МЛН
Хотите поиграть в такую?😄
00:16
МЯТНАЯ ФАНТА
Рет қаралды 3,6 МЛН
3AA614109 ABS allow ACC via hacked SGO
10:58
LamkaxD
Рет қаралды 32
How to stay fast and fresh with Angular
20:15
Chrome for Developers
Рет қаралды 79 М.
10 CSS Pro Tips - Code this, NOT that!
9:39
Fireship
Рет қаралды 2,1 МЛН
Testing best practices for web apps
16:48
Chrome for Developers
Рет қаралды 3,1 М.
The BEST AI VIDEO Generator is…(Head-to-Head Battle)
31:22
AI Samson
Рет қаралды 11 М.
Storage for the web
10:12
Chrome for Developers
Рет қаралды 88 М.
Image compression deep-dive
31:32
Chrome for Developers
Рет қаралды 53 М.
Power Apps Tutorial
2:42:26
Learnit Training
Рет қаралды 324 М.
Learn Web Development And ACTUALLY Get A Job | Ultimate Guide
1:33:52
James Cross
Рет қаралды 1,3 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Игорь Линк
Рет қаралды 127 М.
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 5 МЛН