Recently, I was replying to a question by a DummyTech.com visitor about how to remove highlights from a Microsoft Word document. I wanted to visually demonstrate the various types of highlights that can be applied to text and paragraph in my tutorial so had to figure out a way to highlight text in WordPress. Unlike Microsoft Word, the WordPress editing toolbar doesn’t come with a highlight button.
There are several plugins that can take care of highlighting for you, however, I am not going to ask you to install any of those plugins. The reason being, these plugins are not so popular and are likely not to be updated often. So, you might have comparability issues which can often break down your WordPress installation.
You can highlight using CSS, but that too is not very suitable for novice WordPress bloggers. So, don’t worry, I am not going to ask you to edit any code either.
The easiest and the simplest way of adding highlights in WordPress is to use the <mark> tag. The mark tag is a fancy way of saying highlight in HTML. HTML5 also supports this tag and it is compatible with the latest versions of Chrome, Firefox, Internet Explorer, Safari and Opera. Here are the instructions for adding this tag to highlight text in WordPress:
So, if I wanted to highlight “THIS BLOCK OF TEXT IS HIGHLIGHTED”, I would go to the Text tab and enter the mark tags as follows: <mark>THIS BLOCK OF TEXT IS HIGHLIGHTED</mark>. This will results in THIS BLOCK OF TEXT IS HIGHLIGHTED. As you can see, the text within the mark tags are highlighted. There you go, this is the simplest way to highlight text in WordPress.
By default, the browsers will use yellow color to highlight the text when mark tags are used. However, under certain circumstances, you might want to change the color to something else. You can do this by adding CSS code to your style.css file. Some themes also allow you to add your own CSS code by going to Appearance > Edit CSS.
To change the default color, use the following CSS code:
mark { background-color: red; }
This will change the background color of the highlight to red.
If you are experiencing issues with your Windows system due to the Crowdstrike update, here's…
Koodo customers in Canada can now get Amazon Prime, Netflix Standard with ads and Disney+…
If you received an email with a single use code to login to your Microsoft…
If you are trying to login to your Microsoft account and getting the following error…
Most system admins set Microsoft Teams status to show Away when you are inactive for…
If you are using a Windows computer and your keyboard doesn't have a backslash "\"…