Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Mark Element
Mark Element

Mark is a formatting element used to high light text in document. You can use mark tag to high light text as important to viewer

Syntax

<mark>Content</mark>

Or

<tag><mark>Content</mark></tag>


You can apply mark element to any element and use any where within a HTML document.


Example

I am Marked Text


Mark is a pair tag and output of mark element is high lighted text like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Create the largest heading
  • Make it high lighted using <mark> element

save file with name task.html or task.htm and then open it using any browser and see results.


Solution

I am marked heading


Don't forget mark is non empty element which means it always comes in pair.