The CSS ::selection pseudo-element is used when we need to change the default style of selected portion of text, by user on a web page. For example:
This is para one.
This is para two.
Note - If you select some text from above three paragraphs, then the defined style will get applied to the selected portion.
© Copyright 2021. All Rights Reserved.