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>

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: