, 2.<apex:image url="{!URLFOR($Resource.Testpack , 'hills.jpg')}" width="50" height="50" />, 3.<apex:image url="{!($Resource.Testpack , 'hills.jpg')}" width="50" height="50" />, 4.<apex:image url="hills.jpg" width="50" height="50" />">
linked linked linkedin whatsapp remove
Feedback

Salesforce-Development Quiz Salesforce-Development

You have a static resource archive named Testpack in your VisualForce organization which contains an image file named hills.jpg. You want to reference this image file in your VisualForce page. Which of the following Code Snippets can be used to achieve the desired result?


apex:image url="{!$Resource.Testpack}" width="50" height="50" />
<apex:image url="{!URLFOR($Resource.Testpack , 'hills.jpg')}" width="50" height="50" />
<apex:image url="{!($Resource.Testpack , 'hills.jpg')}" width="50" height="50" />
<apex:image url="hills.jpg" width="50" height="50" />

Answer:
<apex:image url="{!URLFOR($Resource.Testpack , 'hills.jpg')}" width="50" height="50" />

Note: This Question is unanswered, help us to find answer for this one

Related Salesforce-Development Questions and Answers: