Write a HTML program to display H2o and X4 the background will be red, font colour will be blue.
Answers
Answered by
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
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