Which element is used to get highlighted text in HTML5?

Minh Tung

New member
Which element is used to get highlighted text in HTML5?
A. <highlight>
B. <b>
C. <mark>
D. <u>
 
Answer: c
Explanation: The <mark> element is used to highlight a section of text. It is useful for quoting a text or if one wants to bring attention to the text. The <b> tag is used to make text/paragraph bold. <u> tag is used to underline the text you wanted.
Code:
<p>This is the example.<mark> I like this dog. </mark></p>
Output: This is the example. I like this dog.
 

Tìm kiếm

Back
Top