Computer scienceFrontendHTMLHTML element categories

Inline elements

Subscript tag

Report a typo

Create an element <p> and inside create a formula that looks like this:

The formula of the water

The formula can be copied from here:

  • H2 + 0.5O2 = H2O

Tip: Check that the characters you entered are correct and make sure you don't have extra spaces.

Write HTML and CSS code
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Formula</title>
</head>
<body>
<!--create the element and formula here -->
</body>
</html>

Completed 2 of 4
Inside the <body> tag there's one <p> tag.
The formula is correct; There are 3 subscripted text numbers inside the <p> tag
___

Create a free account to access the full topic