<mark> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:mark

Introduction

mark element is used to highlight Text.

The mark element is new to HTML5 and represents highlighted text.

The mark Element summary

Item Value
Elementmark
Local Attributes None
Tag Style Start and end tag
New in HTML5 Yes
Changes in HTML5 N/A

Style Convention

mark {
   background-color: yellow;
   color: black;
}

The following code demonstrates the mark element.

Using the mark Element

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body> 
      <p>
          I would like a 
         <mark>tutorial</mark>
          of <!-- ww  w  . j av  a2  s.c  o  m-->
         <mark>CSS</mark> 
      </p>  
   </body>
</html>

Related Tutorials