VOOZH about

URL: https://www.geeksforgeeks.org/web-templates/how-to-create-engraved-text-effect-using-html-and-css/

⇱ How to Create Engraved Text Effect using HTML and CSS ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to Create Engraved Text Effect using HTML and CSS ?

Last Updated : 12 Jul, 2025

The engraved text effect is an effect that you can use in your websites as a heading or a sub-heading to make it look more pleasing and attractive.

Approach: The engraved text effect can be easily generated using HTML and CSS. First we will create a basic text using HTML and then by using the CSS text-shadow property we will generate the desired effect.

Example 1:

In the above example, we first create a div tag that contains some text inside of it, then we design text using CSS basic properties. Then we will use the text-shadow property to generate the engraved effect.

Output: 👁 Image
Example 2: Output: 👁 Image
Comment