Highlight Text with the Span Tag October 3, 2018 The  tag can be used to add highlights to text. You can choose the color of the highlight. The code looks like this: This is highlighted text.