Create white text with black shadow using CSS

Use the text-shadow property to create white text with black shadow.

You can try to run the following code to implement the text-shadow property:

Example


   
      
   
   
      

Heading One

     

Above heading has a text shadow effect.

   

Updated on: 2026-03-11T22:50:41+05:30

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements