🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X
Questions


















Create a web page to display the following output:

Last Updated : 17 Jul 2025 Jan 23

Solution:

<!DOCTYPE html>
<html>
<head>
    <title>Chemical Formula and Algebraic Expression</title>
</head>
<body>
    <p>H<sub>2</sub>So<sub>4</sub> and (a+b)<sup>2</sup> = a<sup>2</sup> + 2ab + b<sup>2</sup></p>
</body>
</html>

Code Explanation :

  • <sub>: Used for subscripts (e.g., Hâ‚‚, SOâ‚„).
  • <sup>: Used for superscripts (e.g., (a+b)², a², b²).
Report an error
Latest Updates