VOOZH about

URL: https://www.geeksforgeeks.org/css/css-after-selector/

⇱ CSS ::after Selector - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

CSS ::after Selector

Last Updated : 29 Aug, 2024

::after selector is used to add the same content multiple times after the content of other elements. This selector is the same as ::before selector. 

Syntax:

::after{
content:
}

Below HTMl/CSS code shows the functionality of ::after selector : 

Output:

👁 Image

Supported Browsers

  • Google Chrome 1.0
  • Edge 12.0
  • Firefox 1.5
  • Safari 4.0
  • Opera 7.0

Note: Opera 4-6 supports with single-colon.(:after)

Comment
Article Tags: