There are three types of controllers. 1) Standard Controller: It is a type of controller where it uses features given by salesforce. 2) Custom Controller: It is a controller or code which is written by the developer. 3) Controller Extension: It uses some standard controller functionalities but the apex code which we have written extends some of its functionalities.
</apex:page>
Regards,
Harish.R
There are three types of controllers.
1) Standard Controller: It is a type of controller where it uses features given by salesforce.
2) Custom Controller: It is a controller or code which is written by the developer.
3) Controller Extension: It uses some standard controller functionalities but the apex code which we have written extends some of its functionalities.
<!-- body of code -->
</page>
or
<apex:page controller=YourController" action="{!yourMethod}">
<!-- body of code -->
</page>
Note: You can also call a controller form your javascript if there is any javascript code written in your visualforce
Please mark this is as a best answer.