Skip to content
Related Articles
Open in App
Not now

Related Articles

How to define marked/highlighted text using HTML5 ?

Improve Article
Save Article
  • Last Updated : 30 May, 2022
Improve Article
Save Article

In the article, we define a marked/highlighted text 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. Syntax: 

<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

Output: Supported Browsers are listed below: 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!