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
Carolyn PriceCarolyn Price 

Difference between apex:outputLink vs a href in Visualforce?

Hi Folks! Anyone know if there's any benefit to using apex:outputLink over a href in a Visualforce page? This use case is mostly to link to other Visualforce pages.

Thanks!
Carolyn

Neetu_BansalNeetu_Bansal
Hi Carolyn,

Although both have same usage  but using apex:outputLink, you have can specify several attributes which totally depends on your requirement.

You can refer this link too:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_outputLink.htm

Let me know, if any other information is required.

Thanks,
Neetu