If a developer wants to add a special icon before the content of a hyperlink to indicate that it opens in a new window, which pseudo-element should they use to achieve this without altering the HTML markup?
- ::after
- ::before
- ::first-letter
- ::first-line
The '::before' pseudo-element can be used to insert content before the content of the selected element, allowing the addition of a special icon before the hyperlink content.
Loading...
Related Quiz
- For high-DPI displays, how would you set a background image in CSS that optimizes for resolution without impacting lower resolution displays?
- Which SASS/SCSS feature allows you to pass values when including a mixin?
- If an element has a set width, which box model property affects the total width of the element?
- You're optimizing a web page's load time and observe that the Critical Rendering Path is being impacted by large CSS files. What strategy would you adopt to optimize the CSS delivery for better performance?
- Animating properties like opacity and transform is considered more performant because they don't trigger ________ in most browsers.