Home > Article > Web Front-end > How to shadow text in HTML
How to shadow text in HTML: First create a new P tag in HTML and enter the content; then define a class for this P tag and use the statement [text-shadow] to add shadow; finally set the effect: Can.
The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer. This method is suitable for all brands of computers.
How to shadow text in HTML:
1. First, we create a new P tag in HTML and enter the content.
#2. Then, we can define a class for this P tag, here we call it [PTitle].
#3. Then, we can write statements using [text-shadow] shadow.
#4. Next, we can set the offset position of the X and Y axes for him.
#5. At this point, we can set the blur level and color of 10 pixels for him.
#6. After that, we can go here to see the shadow effect of our text.
Related learning recommendations: html video tutorial
The above is the detailed content of How to shadow text in HTML. For more information, please follow other related articles on the PHP Chinese website!