function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mustafa JhabuawalaMustafa Jhabuawala 

What is the difference between 'button' and 'ui:button' tag ? and where both are recommended to be used..

Best Answer chosen by Mustafa Jhabuawala
Mark SFMark SF
Here is some doc on ui:button -

Here is more related doc:
An HTML tag is treated as a first-class component by the framework. Each HTML tag is translated into a component, allowing it to enjoy the same rights and privileges as any other component.
We recommend that you use components in preference to HTML tags. For example, use ui:button instead of  <button> . Components are designed with accessibility in mind so users with disabilities or those who use assistive technologies can also use your app. When you start building more complex components, the reusable out-of-the-box components can simplify your job by handling some of the plumbing that you would otherwise have to create yourself. Also, these components are secure and optimized for performance.

I hope that helps!