HTML (10)
SUBSCRIPT
To write something like h2o we use subscript
EG ↓↓↓↓↓↓
<html>
<head>
<title>My Page</title>
</head>
<body>
<p>To write something like h<sub>2</sub>o</p>
</body>
</html>
EG ↓↓↓↓↓↓
<html>
<head>
<title>My Page</title>
</head>
<body>
<p>To write something like h<sub>2</sub>o</p>
</body>
</html>
SUPERSCRIPT
To wrote something like x2 we use superscript
Eg ↓↓↓↓↓↓↓↓
<html>
<head>
<title>My Page</title>
<body>
<p>To write something like x<sup>2</sup></p>
</body>
</html>
Eg ↓↓↓↓↓↓↓↓
<html>
<head>
<title>My Page</title>
<body>
<p>To write something like x<sup>2</sup></p>
</body>
</html>
SPECIAL CHARACTERS
We use different codes for some characters
- < = used for left bracket (<)
- > = used for right bracket (>)
- & = used for (&)
Eg ↓↓↓↓↓↓
<html>
<head>
<title>My Page</title>
</head>
<body>
<p>The < brackets > & special characters</p>
</body>
</html>
</body>
</html>
0 Comments