Have a wrapper for your intended message;
<div id="message"></div>
And use the "content" attribute of "before" in your css
#message:before {
content: "Hello world"
}
You can now update the css and the html will update accordingly.
CSS Content | CSS-Tricks[
^]