How does the SMACSS methodology recommend handling states, like "is-active" or "is-hidden"?
- Apply these states as classes in the HTML
- Avoid handling states in SMACSS
- Use JavaScript to toggle these states
- Utilize pseudo-elements like :active or :hidden
In the SMACSS (Scalable and Modular Architecture for CSS) methodology, states like "is-active" or "is-hidden" are typically handled by applying them as classes directly in the HTML markup. This allows for clear separation of styling and behavior, making the code more maintainable and modular.
Loading...
Related Quiz
- The attr() function in CSS is used to retrieve the value of an HTML ______.
- Which of the following CSS combinators targets a direct child element?
- Which property allows you to control the size of tracks in a grid layout?
- In SASS/SCSS, the ________ directive allows for the creation of reusable chunks of CSS.
- In a responsive design, you have a sidebar that should stick to the top after scrolling past its initial position but stop sticking when it reaches the footer. Which positioning property would you apply to the sidebar?