Skip to main content
I wrote this code to solve the trialhead but it gives me this error on trialhead 

error:   The page does not include an <apex:image> component

code:

<apex:page showHeader="false">

    <img id="theImage" src="https://developer.salesforce.com/files/salesforce-developer-network-logo.png" />

</apex:page>

trialhead challenge:

Create a Visualforce page without the standard Salesforce header and display an image using the Visualforce image component. 

Challenge Requirements

The page must be named DisplayImage

It must NOT display the standard Salesforce header

It must use a Visualforce apex:image component to display this image - https://developer.salesforce.com/files/salesforce-developer-network-logo.png

 
2 answers
  1. Feb 7, 2019, 12:41 PM
    Hi Farah,

    Use below code -

    <apex:page showHeader="false">

    <apex:image id="theImage" value="https://developer.salesforce.com/files/salesforce-developer-network-logo.png" width="220" height="100" alt="Description of image here"/>

    </apex:page>

    Happy Coding!
0/9000