Salesforce Platform Developer I (legacy) — Question 214

Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page matches the look and feel of
Lightning Experience?

Answer options

Correct answer: C

Explanation

The correct answer is C, as it enables the use of Lightning Design System styles by setting the lightningStyleSheets attribute to true. Options A and B are incorrect because they either attempt to load external CSS incorrectly or do not facilitate the Lightning styling. Option D is not suitable since it includes Lightning components but does not apply the Lightning Design System styles to the page.