Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

mark

The <mark> element is used to highlight content much the same way portions of text in a textbook are highlighted by the reader using a marker. It serves the same purpose as marking text in a real book with a highlight marker.

Code Example

<style> .pinkmark{ background:#ffdfe4; } </style> <p>Down in the outback we ate a <mark>Kangaroo</mark> tail.</p> <p>Down in the outback we ate a <mark class="pinkmark">Kangaroo</mark> tail.</p> open in code editor

Attributes

globals - the global attributes common to all elements possible values: see global attribute list

Official Documentation

http://www.w3.org/TR/html/text-level-semantics.html#the-mark-element

HTML

Elements

aabbraddressareaasidearticleaudiobbasebdobdiblockquotebodybrbuttoncanvascaptioncitecodecolcolgroupdatadatalistdddeldetailsdfndialogdivdldtemembedfieldsetfigcaptionfigurefooterformh1 h2 h3 h4 h5 h6headheaderhrhtmliiframeimginputinskbdkeygenlabellegendlilinkmainmapmarkmetameternavnoscriptobjectoloptgroupoptionoutputpparampreprogressqrb rp rt rtc rubyssampscriptsectionselectsmallsourcespanstrongstylesub supsummarytabletbodytdtemplatetextareatfootththeadtimetitletrtrackuulvarvideowbr