- What is the use of cancel button?
- Should cancel be a button or a link?
- What color should a cancel button be?
- Should OK button be on left or right?
What is the use of cancel button?
A cancel button is clicked whenever the user presses the ESC key, regardless of which other control on the form has the focus. Such a button is usually programmed to enable the user to quickly exit an operation without committing to any action.
Should cancel be a button or a link?
To summarize
The cancel option is similar to aborting an action, and therefore similar to navigating back to the previous state of the UI. Navigation is represented in web UI as hyperlinks, and thus the cancel option should be a hyperlink.
What color should a cancel button be?
The Cancel button should have a neutral color to signify the neutral, non-committal button. When users see that the Cancel button has no color, they'll recognize it as the fallback to safety easier. It's critical for users who need to escape a confirmation screen to notice this.
Should OK button be on left or right?
Listing OK first supports the natural reading order in English and other languages that read left-to-right. Many other button sets have a natural progression (say, Yes / No or Previous / Next). You should always list these so that the reading order matches the logical order — in this case, OK / Cancel.