Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
53.2k views
in Computer by (92.4k points)

6CO2 + 6H2C6H12O6 + 6O

To display above given chemical expression on a webpage, 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 its not displaying the expression in desired format. Identify the fault (s) and suggest the required correction (s).

1 Answer

+1 vote
by (81.4k points)
selected by
 
Best answer

The <sup> tag defines superscript text. While, the <sub> tag defines subscript text.

Thus all <sup> tags need to be replaced with <sub> tags

                                OR

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>

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...