Salesforce Certified Platform Developer II — Question 83
What Visualforce tag can be used to display custom messages in pages using the Salesforce UI styling for errors, warnings, and other types of messages?
Answer options
- A. <apex:customMessage>
- B. <apex:error>
- C. <apex:message>
- D. <apex:pageMessage>
Correct answer: D
Explanation
The <apex:pageMessage> tag is specifically designed to present custom messages with Salesforce UI styling. The other options, while related to messages, do not provide the same level of integration with Salesforce's styling for different message types.