My Computer Tips was launched in 2015 and provides information for common tasks in various Linux distributions and other computer related subjects.
My Computer tips has over 290 tutorials and tips.
If you found the information on My Computer Tips useful, please consider sharing our site details.
ID: 322
Category: HTML
Added: 2nd of October 2022
Views: 1,501
To highlight text on a webpage you can the HTML <mark></mark> tag
Example:
Use the <mark></mark> tag in HTML to highlight text on your webpages.
By default highlighted text will have a yellow background. If you want to change this you just need to add some css to your HTML code, like the example below.
Create a new file on your Desktop named mark.html, copy and paste the code below then save the file. Launch the file in your browser.
Linux Forums
Linux Gaming
Other Linux / Computer Sites
Other Sites / Shopping