Tutorial by Examples

Use the $Resource variable to reference static resources. <img src="{!$Resource.myImage}" /> Can be used in conjunction with the URLFOR function to reference files inside of a zipped static resource: <apex:includeScript value="{!URLFOR($Resource.myResources, 'js/app.js')...
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...
The $User variable gives you access to all the standard and custom fields on the User object for the currently logged in user. You are logged in as a user from {!$User.CompanyName}.

Page 1 of 1