::before css content attr code example Example: ::before content /* Add a heart before links */ a::before { content: "♥"; }