Question: Select all that apply. Which of the following module elements would be a good candidate for a style field?
- Text color
- An image with alternative text
- A button link
- A background image
Explanation
A style field is meant for presentation-only controls that change appearance without changing the meaning of the content. HubSpot says style fields help content creators adjust a module’s appearance and specifically includes visual controls such as Color and Background Image in the style-field set. HubSpot also says style fields should not communicate meaning or be required to understand the page’s content. That is why visual presentation controls belong here, while meaningful content inputs belong in content fields instead. HubSpot Developers+2HubSpot Developers+2
Why the other options are incorrect
An image with alternative text is incorrect because HubSpot says that when an image is required to understand the content, it should be a content field rather than a style field, especially when alt text is needed. HubSpot Developers
A button link is incorrect because links define destination and content behavior, while HubSpot places appearance controls in the Styles tab and content controls separately. HubSpot Developers+1
Source for verification
https://developers.hubspot.com/docs/cms/best-practices/content-editing/fields
https://developers.hubspot.com/docs/cms/reference/fields/overview
The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the "HubSpot CMS for Developers II" page.
