English

What is the use of <mark> tag?

Advertisements

Question

What is the use of <mark> tag?

Short/Brief Note
Advertisements

Solution

The <mark> tag is used to highlight the text in HTML. This is also a container tag. Whatever the text given between <mark> and </mark> will be displayed as highlighting with default color (mostly yellow).

<html>
<head>
<title> Highlighting text </title>
</head>
<body>
A Computer is an <mark> electronic </mark> device
</body>
</html>

Output will be:

shaalaa.com
  Is there an error in this question or solution?
Chapter 11: HTML - Formatting text, Creating Tables, List and Links - Evaluation [Page 265]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 11 TN Board
Chapter 11 HTML - Formatting text, Creating Tables, List and Links
Evaluation | Q 2. | Page 265
Advertisements
Share
Notifications



      Forgot password?
Use app×