What is the purpose of the <sup> tag in HTML?
Correct answer
A. To define superscript text
17 views
A. To define superscript text
17 views
The correct answer is <sup>. The <sup> tag is used to define superscript text in HTML, which appears above the baseline of the surrounding text. It is commonly used for mathematical exponents, footnotes, and citations. Using semantic HTML elements like <sup> improves the structure and accessibility of web content.
Not sure why the answer is A? Ask here and get an explanation.