Above code will display 3 columns of Name, Mailing City and Phone for the given list of contacts. This should be good enough to start for you. Please refer salesforce documentations for more details.
Pass account Id to URL of the page i.e (https://c.na11.visual.force.com/apex/Example?id=accountRecordId) Replace accountRecordId with Id of the Account.
If this solves your problem, kindly mark it as the best answer.
For example Above code will display 3 columns of Name, Mailing City and Phone for the given list of contacts.
This should be good enough to start for you. Please refer salesforce documentations for more details.
Create One Visualforce page and refer below Example:
Above page will display all fields of account.
Pass account Id to URL of the page i.e (https://c.na11.visual.force.com/apex/Example?id=accountRecordId)
Replace accountRecordId with Id of the Account.
If this solves your problem, kindly mark it as the best answer.
Thanks,
Vatsal