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²).