Home / CSS Tips Generated By ChatGPT / Styling Pseudo-elements for Icons in CSS Use pseudo-elements to add icons or decorative elements without additional HTML. Source Code .icon::before { content: url('icon.svg'); margin-right: 8px; }