When you want to add something at the
end of an element without actually
adding it in the HTML, you can use the
::after
pseudo-element to do so,
with the help of the content
property.
You can then style that content
just like any other element:
The above example makes use of
both ::before
and ::after
to add decorative lines on
both sides of a heading.