Question · HTML and CSS course · Module 3: CSS Basics

The ::before Pseudo-element

What is required for a ::before or ::after pseudo-element to be visible?

Answer options

  • The display: block property
  • The content property
  • The visibility: visible property
  • The z-index property

You can check the correct answer by solving this task in the CodeWorlds game.