Is that what you had in mind?
<label class="required">Name:</label>
<input type="text">
<style>
.required:after {
content:" *";
color: red;
}
</style>
.required:after {_x000D_
content:" *";_x000D_
color: red;_x000D_
}
_x000D_
<label class="required">Name:</label>_x000D_
<input type="text">
_x000D_
See https://developer.mozilla.org/en-US/docs/Web/CSS/pseudo-elements