I’m currently stuck at a probably very trivial problem:
I have a simple HTML/CSS page with a text:
<head></head>
<body>
This is a Text about Foobar.
</body>
How is it possible to assign a CSS-class/id to the word Text without breaking the format? Let’s say I want to add the class .yellow to it, which displays the text with a yellow background.
I think I got something blocking my mind cause it can’t be that difficult… But all I can google (mostly trivial tutorials) uses CSS just on usual HTML-elements like <p> or <b> which would break my format.
I think you are missing out on
<span>tag.Try this out:
And in CSS: