This code explains pseudo elements first-letter and first-line and it's working fine.
Practice CSS :first-letter pseudo elementFirst character of this paragraph will
be normal and will have font size 40 px;
The first character of this paragraph will be 3em big
and in red color as defined in the CSS rule above. Rest of the
characters in this paragraph will remain normal. This example
shows how to use :first-letter pseudo element to give effect to
the first characters of any HTML element.
Can I use both this pseudo elements first-letter and first-line on 'p' tag at the same time, as in code give below?
First character of this paragraph will
be normal and will have font size 40 px;
The first character of this paragraph will be 3em big
and in red color as defined in the CSS rule above. Rest of the
characters in this paragraph will remain normal. This example
shows how to use :first-letter pseudo element to give effect to
the first characters of any HTML element.