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
Ian Lin 20Ian Lin 20 

how to create a sample visualforce page

Khan AnasKhan Anas (Salesforce Developers) 
Hi Ian,

Greetings to you!

Follow these steps to create a Visualforce page in the Developer Console.
  • Open the Developer Console under Your Name or the quick access menu ().
  • The Developer Console opens in a new window.
  • Click File | New | Visualforce Page.
  • Enter HelloWorld for the name of the new page, and click OK.
  • A new, blank Visualforce page opens in the Developer Console.
  • In the editor, enter the following markup for the page.
<apex:page> 
    <h1>Hello World</h1> 
</apex:page>
  • Click File | Save.
  • To see your new page, click Preview.

Please refer to the below links which might help you further.

https://trailhead.salesforce.com/en/content/learn/modules/visualforce_fundamentals/visualforce_creating_pages

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_hello_world.htm

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Ajay K DubediAjay K Dubedi
Hi Ian,
1. On Developer Console Click File | New | Visualforce Page.
2. Enter Name of the page and click OK.
3. A new, blank Visualforce page opens.
4. In the editor, you can write
   <apex:page> 
       <h1>My First VisualForce Page</h1> 
   </apex:page>
5.Click File | Save.
6.To see your new page, click Preview.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi