This is in the CSS code in CSS File currently: 

```
.titletext::before {
background: linear-gradient(90deg, #cc2900 79%, #b3b3b3 21%); 
}

```

But, I want to use it in HTML file, here

```
<h2 class="titletext"> Hii</h2>

```

Because, i want to insert some PHP values in it. How i do this? 

This is what i tried:

```
<h2 class="titletext" style::before="background: linear-gradient(90deg, #cc2900 53%, #b3b3b3 47%);">Hii</h2>

```