Usually, it’s more sane to embed formatting in the string itself rather than having styling separately defined (i.e. CSS, kinda).
like this: <b>Bold Text</b>?
<b>Bold Text</b>
It’s not you investigating, it’s just the brain calculating and coding how it was made in the language I learned.
For me it’s just the brain doing unnecessary calculations to see how this ui element was made. Why unnecessary? because when it calculates, it’s the time after work where it starts calculating, like brain, you’re tired, stop it.