KnowledgeBoat Logo
|

Computer Applications

6CO2 + 6H2O → C6H12O6 + 6O2

To display the above given chemical expression on a web page, the following HTML code was written:

6CO<sup>2</sup> + 6H<sup>2</sup>O →
C<sup>6</sup>H<sup>12</sup>O<sup>6</sup> + 6O<sup>2</sup>

But it's not displaying the expression in desired format. Identify the fault(s) and suggest the required correction(s).

HTML Intro

10 Likes

Answer

<SUB> tag is used to write a text as a subscript and <SUP> tag is used to write a text as a superscript. The given chemical expression should be written using <SUB> tag instead of the <SUP> tag.

Thus, the given equation can be written correctly by writing the given HTML code:

6CO<SUB>2</SUB> + 6H<SUB>2</SUB>O →
C<SUB>6</SUB>H<SUB>12</SUB>O<SUB>6</SUB> + 6O<SUB>2</SUB>

Answered By

8 Likes


Related Questions