+ 10

How 'before' and 'after'keyword are different and where can they use?

html

28th May 2019, 3:43 PM
ArkarHtun
ArkarHtun - avatar
2 Answers
+ 7
Thank you😊
29th May 2019, 12:19 AM
ArkarHtun
ArkarHtun - avatar
+ 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/
28th May 2019, 4:12 PM
Kartik
Kartik - avatar