CSS Pseudo Elements - Part 2

Notes:

CSS - Pseudo Elements (Selectors) - Part 2:

Ex:
p::before
{
content : ”Hello “;
}
It generates the specified content (i.e. Hello) before the content of any p element.

Ex:
p::after
{
content : ” HTML!“;
}
It generates the specified content (i.e. HTML!) after the content of any p element.

Interview Questions: