Write the HTML command to display the following in your web page: X2 + Y2 . 2 with x is in subscript and 2 with y is in superscript.
Answers
Answered by
0
Explanation:
<!DOCTYPE html>
<html>
<head>
<style>
sub {
vertical-align: sub;
font-size: small;
}
</style>
</head>
<body>
<p>A sub element is displayed like this</p>
<p>This text contains <sub>subscript text</sub></p>
<p>Change the default CSS settings to see the effect.</p>
</body>
</html>
Similar questions