HTML code for (x+y)2 is a mathematical formula.

Q2. Write an HTML code to write the following text on a Web page:

(x+y)2 is a mathematical formula.

Ans. The following code allows you to display the text as given in the

question:

<HTML>

<HEAD>

<TITLE>

</TITLE>

</HEAD>

<BODY>

(x+y)<SUP>2</SUP> is a mathematical formula.

</BODY>

</HTML>

Leave a Reply

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

%d bloggers like this: