HTML Lesson 2: Customizing Text, Using Super/Subscripts

Key Concepts:

  • To make something bold:
    <b> Making it bold!</b>
  • To make something italic:
    <i> Making it italic, oh wait it already is! </i>
  • To use a superscript:
    July 4<sup>th</sup>
  • To use a subscript:
    CO<sub>2</sub is a chemical.

 

The Code (GitHub):

<!DOCTYPE html>
<html lang=”en”>
<head>
<title> Welcome to My Website</title>
<meta charaset=”utf-8″>
</head>
<body>
<h1>My name is Zach</h1>
<p> I like writing <b>HTML</b> Code. <br>
<i>I also like developing websites in HTML.</i> <br>
My favorite website is Reddit.<br>
My favorite summer holiday is the 4<sup>th</sup> of July!<br>
Water is CO<sub>2</sub>.</p>

</body>
</html>”