+ 10
How 'before' and 'after'keyword are different and where can they use?
html
2 Answers
+ 7
Thank youđ
+ 6
::after is a pseudo element which allows you to insert content onto a page from CSS (without it needing to be in the HTML).
::before is exactly the same only it inserts the content before any other content in the HTML instead of after.
Check this out.
https://css-tricks.com/almanac/selectors/a/after-and-before/