<div>codingCourses</div>
div {
    font-size: 2em;
    font-weight: 900;
    text-align: center;
    border: 10px dashed red; /* The area up to the outer edge of the border 
                                        corresponds to border-box */
    padding: 30px; /* The area up to the outer edge of the padding corresponds to padding-box
                      The inner area inside the padding corresponds to content-box */
    background-image: url("flower.jpg");
    background-position: center;
    background-clip: border-box; /* initial value */
}
CSS Live Demo: background-clip Click the demo button below!
background-clip: border-box | padding-box | content-box | text
The box model of an element
The box model of an element
/* Keyword values */
background-clip: border-box;
background-clip: padding-box;
background-clip: content-box;
background-clip: text;

/* Global values */
background-clip: inherit;
background-clip: initial;
background-clip: revert;
background-clip: revert-layer;
background-clip: unset;
/* 
    Prior to 2024, WebKit-based browsers did not support 
    background-clip: text. You had to include the vendor prefix '-webkit-'.
*/
-webkit-background-clip: text;

/* 
    Starting in 2024, most browsers support the 'text' value 
    without the '-webkit-' prefix.
*/
background-clip: text;
selector {
    background-clip: text;
    /* To make the text background visible,
       the text color must be transparent */
    color: transparent;
}
<div>TEXT</div>
div {
    font-size: 50px;
    font-weight: 900;
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(red, blue);
}
Rendered Output

See more details on caniuse.com.