Computer Science, asked by dhairya1228, 2 months ago

Write a HTML program to display H2o and X4 the background will be red, font colour will be blue.​

Answers

Answered by anindyaadhikari13
5

Answer:

This is the required HTML cσde for the question.

<!DOCTYPE html>

<html>

<head>

 <title>Website</title>

</head>

<body bgcolor="red">

   <font color="blue">

 <h1>H<sub>2</sub>O</h1>

 <h1>X<sup>4</sup></h1>

 </font>

</body>

</html>

Note:

  • To display superscript text, the <sup> tag is used whereas to display subscript text, the <sub> tag is used. Both are container tags and require closing tag.

Refer to the attachment.

•••♪

Attachments:
Answered by Anonymous
32

Answer:-

The required HTML codē is as follows:

<!DOCTYPE html>

<html>

<head>

<title>brainly</title>

</head>

<body bgcolor="red">

<font color="blue">

<h1>H<sub>2</sub>O</h1>

<h1>X<sup>4</sup></h1>

</font>

</body>

</html>

_____________

Output attached!!

Attachments:
Similar questions