Salesforce Global Variables on Visualforce pages $Label


The $Label variable can be used to display text defined in your custom labels.

<apex:outputText value="{!$Label.Welcome_Message}" />

You can do formatting with labels as well. Suppose you have a custom label named Welcome_Message defined as

Welcome to our site, {0}!

You could use the label to display a formatted message:

<apex:outputText value="{!$Label.Welcome_Message}" rendered="{!NOT(ISBLANK($User.ContactId))}">
  <apex:param value="{!$User.Contact.FirstName}" />