How to make first latter big and other small in CSS?

Asked 19-Jul-2021
Viewed 434 times

1 Answer


In this question use the pseudo element selector.

<!DOCTYPE html>

<html lang='en' xmlns=''>
        p::first-letter {
            color: red;
            font-size: 50px;
    <p>You can use the ::first-letter pseudo-element to add a special effect to the first character of a text!</p>