1.

What are pseudo-elements? Explain with an example.

Answer»

The :FIRST-LINE pseudo-element is used to style the first FORMATTED line of a paragraph by using text-transform PROPERTY with value uppercase.

For e.g.

p:first-line { text-transform: uppercase }


Discussion

No Comment Found