Which statement about CSS in modules is TRUE?
- a – CSS rules will have the same effect on the page whether they’re written in the CSS section or the HTML+ HubL section of the module editor.
- b – Module CSS is automatically scoped to modules and will not apply to other elements on a page.
- c – CSS added to the HTML+ HubL section of the module editor will be repeated on the page in every instance of a module.
- d – Modules require custom CSS and cannot be published without it.
Explanation: The correct answer is CSS added to the HTML+ HubL section of the module editor will be repeated on the page in every instance of a module. In HubSpot’s module editor, CSS can be applied directly within the HTML+ HubL section, allowing developers to style the module’s content or structure according to specific design requirements. When CSS rules are added within this section, they become part of the module’s template and are consequently repeated on the page every time the module is used. This behavior ensures consistency in styling across multiple instances of the same module, making it easier to maintain a cohesive design throughout the website. Conversely, CSS rules written in the CSS section of the module editor are scoped specifically to that module and do not apply globally to other elements on the page, ensuring that styling changes made within one module do not inadvertently affect other modules or page elements. Therefore, the statement accurately highlights how CSS added to the HTML+ HubL section of the module editor is repeated across all instances of the module, reinforcing the importance of understanding how CSS interacts within the context of module development in HubSpot.