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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *