CSS Live Demo: text-shadow Click the demo button below!
selector {
    text-shadow: /* value */
}
/*
 * <offset-x> (required): The horizontal distance along the x-axis.
 *                        Accepts positive, zero, and negative values.
 *                        Length values only (percentage values are not allowed).
 *
 * <offset-y> (required): The vertical distance along the y-axis.
 *                        Accepts positive, zero, and negative values.
 *                        Length values only (percentage values are not allowed).
 *
 * <blur-radius> (optional): The blur effect. Measured as the radius of the blur circle.
 *                           Accepts positive and zero values; negative values are not allowed.
 *                           Initial value is 0. Length values only (percentage values are not allowed).
 *
 * <color> (optional): The shadow color.  
 *                     The initial value is currentcolor (the current text color).
 */

/* Note! <blur-radius> or <color> cannot appear between <offset-x> and <offset-y>. */
/* Note! <blur-radius> must immediately follow <offset-y>. */
/* Note! <color> cannot be placed between <offset-x>, <offset-y>, or <blur-radius>. */

/* <offset-x> | <offset-y> | <blur-radius> | <color> */
text-shadow: 2px 3px 4px red;

/* <color> | <offset-x> | <offset-y> | <blur-radius> */
text-shadow: red 2px 0 4px;

/* <offset-x> | <offset-y> | <color> */
text-shadow: 5px 5px #00a0e9;

/* <color> | <offset-x> | <offset-y> */
text-shadow: green 2px 5px;

/*
 * <offset-x> | <offset-y>
 * When <color> and <blur-radius> are omitted, their initial values are used.
 */
text-shadow: 5px 10px;

/*
 * Multiple shadows are added by separating each set of values with a comma (,).
 * Shadows are applied in order from front to back.
 * The first shadow appears on top.
 */
text-shadow: red 2px 0 4px, blue 4px 0 4px, green 6px 8px;

/* Initial value */
text-shadow: none; /* No shadow effect is applied */

/* Global values */
text-shadow: inherit;
text-shadow: initial;
text-shadow: revert;
text-shadow: revert-layer;
text-shadow: unset;
<style>
    .box {
        width: 200px;
        height: 100px;
        background-color: transparent;
        box-shadow: 10px 10px 10px yellowgreen;
    }
</style>
<div class="box">BOX</div>
Rendered Output
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: rgba(0, 0, 0, 0.4);
        text-shadow: 5px 5px red;
    }
</style>
<p class="text">TEXT</p>
Rendered Output
<style>
    .box {
        width: 200px;
        height: 100px;
        background-color: gold;
    }
    .box-1 {
        margin-bottom: 25px;
    }
    .box-2 {
        box-shadow: 0 -50px 20px rgba(0, 0, 0, 0.7);
    }
</style>
<div class="box box-1">BOX 1</div>
<div class="box box-2">BOX 2</div>
Rendered Output
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: gold;
    }
    .text-1 {
        margin-bottom: 10px;
    }
    .text-2 {
        text-shadow: 0 -50px 10px rgba(0, 0, 0, 0.4);
    }
</style>
<p class="text text-1">TEXT 1</p>
<p class="text text-2">TEXT 2</p>
Rendered Output
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: gold;
        text-decoration: underline;
        text-shadow: 5px 5px red;
    }
</style>
<p class="text">TEXT</p>
Rendered Output
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: gold;
        text-emphasis: dot;
        text-shadow: 5px 5px red;
    }
</style>
<p class="text">TEXT</p>
Rendered Output
<style>
    .text {
        font-size: 100px;
        font-weight: 900;
        color: gold;
        text-shadow: 7px 7px red,
                     14px 14px green,
                     21px 21px blue;
    }
</style>
<p class="text">A</p>
Rendered Output