Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to define marked/highlighted text using HTML5 ?

  • Last Updated : 22 May, 2020

In the article, we define a marked/highlighted tex by using the mark tag in HTML is used to define the marked text. It is used to highlight the part of the text in a paragraph. The mark tag is new in HTML 5.


<mark> Contents... </mark> 


<!DOCTYPE html> 
        <title>How to define marked/highlighted text</title
            body { 
            h1 { 
        <h2><mark>HTML5: How to define marked/highlighted text
            It is a 
            <mark>computer science</mark
            portal for geeks 


Supported Browsers are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!