Skip to main content
Practice

Modal

Modal refers to a small window or pop-up that appears on top of the current screen in web pages or apps to display information or options.

Typically, users cannot interact with other parts of the main screen until they complete the tasks within the modal.


When to Use?

Modals are commonly used in the following scenarios:

  • Information Display: Providing additional information or details requested by the user

  • Confirmation Messages: Showing confirmation or warning messages regarding user actions

  • Input Requests: Requesting additional input from users or to submit forms

  • Settings and Options: Offering an interface for users to change settings or options


Characteristics of Modals

  • Captures Attention: Since the content of the modal needs to be viewed and handled first, it is effective in capturing the user's attention.

  • User Interaction: Modals appear temporarily, and disappear once the user completes the necessary tasks.

  • Background Blockage: When a modal is active, the background content becomes temporarily inaccessible. This is usually visually indicated by a blurred background or an 'overlay.'


Points to Consider When Using Modals

Since modals can interrupt the user's workflow, they should be used with caution.

  • Avoid showing them too frequently without necessity.

  • The content within the modal should be concise and clear.

  • Ensure that there is a clearly visible 'close' button or icon for the user to easily dismiss the modal.

Want to learn more?

Join CodeFriends Plus membership or enroll in a course to start your journey.