function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
farah sheriffarah sherif 

visualforce trialhead challenge help

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
 
Best Answer chosen by farah sherif
DevADSDevADS
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!

All Answers

abhishek singh 497abhishek singh 497
Hello Farah ,

Can you please let me know which trailhead challenge is it??
DevADSDevADS
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!
This was selected as the best answer