Part 1: Finishing The Intro
We have completed some of the main introduction part of the website. The introduction part includes the “Hello” h1
tag, the h2
tag containing your name, and the last part will be a p
tag that includes a fun fact about you, or anything that you want people to know about you.
Now, include a p
tag under the h2
tag and share something that you want others to know about you, 1-3 sentences should be enough. In addition, since related tags should be grouped together, use a div
tag and place all tags related to the introduction part inside it.
Answer
Your current code should look like the following:
index.html
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="styles.css"> </head> <body> <div> <h1>Hello</h1> <h2>My name is Mike James </h2> <p>I love playing video games and reading cartoons. When I grow up, I want to be a
basketball player that plays in the NBA. My current favorite basketball player in Steph Curry.</p> </div> </body> </html>styles.css
h2 { font-size: 20px; }