HTML code for H2O is the formula for water.
Q1. Write an HTML code to write the following text on a Web page:
H2O is the formula for water.
Ans. The following code allows you to display the text as given in the question:
<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
H<SUB>2</SUB>O is the formula for water.
</BODY>
</HTML>