Sample Code:
Visualforce Page:
<apex:page controller=”Sample”>
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >
<apex:pageBlockSectionItem helpText=”Name of the Account” >
Account Name <apex:inputField value=”{!acct.Name}”/>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
Visualforce Page:
<apex:page controller=”Sample”>
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >
<apex:pageBlockSectionItem helpText=”Name of the Account” >
Account Name <apex:inputField value=”{!acct.Name}”/>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Apex Class:
public with sharing class Sample {
public Account acct {get;set;}
public Sample() {
}
}
Output:
Cheers!!!