- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Chemical Formulas</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
Chemical Formulas
Chemistry studies chemical substances and their compounds. An example of such a formula is water — H2O, where 2 is the index showing the number of hydrogen atoms.
Carbon dioxide is also an example — CO2. Indices in formulas are very important for the correct representation of chemical substances.
Water:
H2O — water molecule
Carbon dioxide:
CO2 — carbon dioxide molecule
Salt:
NaCl — table salt
Chemical substances:
Water
Carbon dioxide
Salt
</body>
</html>
CSS
body {
width: 500px;
margin: 0;
padding: 10px;
font-family: "Arial", sans-serif;
font-size: 16px;
line-height: 1.2;
}
- Goal
- Result
- Overlay
- Differences
- ?
Press Compare to send your code for review.