Sample Code:
Visualforce page:
<apex:page controller=”sample” sidebar=”false” >
<b>Merge fields in Salesforce</b><br/><br/>
{!$Profile.Name}<br/>
{!$User.FirstName}<br/>
{!$User.LastName}<br/>
{!$ObjectType.Account.Fields.Name.Label}<br/>
{!$ObjectType.Member__c.Fields.Name.Label}<br/>
</apex:page>
Output:
Visualforce page:
<apex:page controller=”sample” sidebar=”false” >
<b>Merge fields in Salesforce</b><br/><br/>
{!$Profile.Name}<br/>
{!$User.FirstName}<br/>
{!$User.LastName}<br/>
{!$ObjectType.Account.Fields.Name.Label}<br/>
{!$ObjectType.Member__c.Fields.Name.Label}<br/>
</apex:page>
Output: