<!-- First Example -->
<form action="">
<label class="form-label">Name</label>
<input type="text" style="display:block">
</form>
<!-- Second Example -->
<div>
<p class="text">Click <a href="http://dev.to" target="blank" class="text__link">Here</a> to go to DEV Community</p>
</div>
.form-label::after{
content:'*';
color: red
}
//Second Example
.text__link{
color: #737373;
text-decoration: none;
}
.text__link::after{
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: '\f35d';
font-size: 16px;
}
View Compiled
This Pen doesn't use any external JavaScript resources.