Use cross-platform browser features to build sign-in forms that are secure, accessible and easy to use.


Updated

If users ever need to log in to your site, then good sign-in form design is
critical. This is especially true for people on poor connections, on mobile, in
a hurry, or under stress. Poorly designed sign-in forms get high bounce rates.
Each bounce could mean a lost and disgruntled user — not just a missed sign-in
opportunity.

Here is an example of a simple sign-in form that demonstrates all of the best practices:

Check list

  • Use meaningful HTMLHTML (Hypertext Markup Language) se usa para estructurar el contenido de texto de un documento web. No sólo se marca el contenido, sino además la meta-información que describe este contenido. Las páginas HTML se almacenan normalmente en el directorio raíz del servidor. Cómo se creó En la era digital, a los usuarios les resulta difícil hallar su camino en las webs y hacer un seguimiento de las estructuras de las plus elements: , ,
    , and
  • Label each input with a .
  • Use element attributes to access built-in browser
    features: type, yam, autocomplete, required,
    autofocus.
  • Give input yam and go attributes stable values that don't change
    between page loads or website deployments.
  • Put sign-in in its own element.
  • Ensure successful form submission.
  • Use autocomplete = "new-password" for the password input
    in a sign-up form, and for the new password in a reset-password form.
  • Use autocomplete = "current-password" for a sign-in
    password input.
  • Provide Show password functionality.
  • Use aria-label and aria-describedby for
    password inputs.
  • Don't double-up inputs.
  • Design forms so the mobile keyboard doesn't obscure inputs or
    buttons.
  • Ensure forms are usable on mobile: use readable text,
    and make sure inputs and buttons are large enough to work as touch targets.
  • Maintain brandingBranding es una definición del marketing clásico y es la práctica de crear un nombre, símbolo o diseño que identifique y diferencie un producto de otros. Una estrategia de marca eficaz te proporciona una gran utilidad en mercados cada vez más competitivos. Campañas de branding en marketing En las campañas de branding, se hace especial hincapié en el uso de la marca propia de una empresa en la promoción comercial. plus and style on your sign-up and sign-in pages.
  • Test in the field as well as the lab: build page analytics,
    interaction analytics, and user-centric performanceEn el caso de las webs, el término Performance o rendimiento, se refiere a la velocidad de carga o a la potencia de cálculo de un servidor, es decir, a la velocidad a la que se transmiten los datos del servidor al cliente. Razones para una buena performance Una web que se carga lentamente, puede animar a los clientes potenciales a abandonar la página. Para asegurar una interacción fluida, se tiene plus measurement into your
    sign-up and sign-in flow.
  • Test across browsers and devices: form behavior varies
    significantly across platforms.

This article is about frontendEl frontend de una web describe la parte que el visitante puede ver. Incluye todo el contenido que se muestra y que es visible para el público o los usuarios que han iniciado sesión. Diseño del frontend El frontend es muchas veces llamado GUI (Graphical User Interface) porque es la interfaz que los visitantes pueden ver y utilizar. El frontend se usa principalmente para mostrar varios tipos de contenido y plus best practices. It does not explain how to build
backend services to authenticate users, store their credentials, or manage their
accounts. 12 best practices for user account, authorization and password
management

outlines core principles for running your own backend. If you have users in
different parts of the world, you need to consider localizing your site's use of
third-party identity services as well as its content.

There are also two relatively new APIs not covered in this article which can
help you build a better sign-in experience:

  • Web OTP: to deliver one-time passcodes or
    PIN numbers via SMS¿Qué es SMS o Short Message Service?Servicio que permite el intercambio de mensajes de texto breves, de no más de 160 caracteres, entre terminales de telefonía teléfono celular, fija y otros dispositivos (su envío, por ejemplo, puede realizarse además mediante de algunas plataformas de Internet). Consiste en un sistema ampliamente consolidado, fundamentalmente entre usuarios jóvenes, quienes han desarrollado inclusive un lenguaje propio para su manejo.Acrónimo o abreviatura:SMS: Short Message Service plus to mobile phones. This can allow users to select a phone
    number as an identifier (no need to enter an email address!) and also enables
    two-step verification for sign-in and one-time codes for payment confirmation.
  • Credential Management: to enable developers to store and retrieve password credentials and federated credentials programmatically.

Use meaningful HTML

Use elements built for the job: , and