Code-Along: About Me Website
With this exercise, you will create a webpage that shows some information about yourself. Start by forking this empty Glitch, and then follow the instructions below.
Setup
Start by setting up the basics of the website.
- In the index.html file, add the
<html></html>
opening and closing tag - Inside of the
<html>
and</html>
, add the<body></body>
opening and closing tag - Inside of the
<body>
and</body>
, add a<h1></h1>
header tag that says "About Me" - Click the Run button to make sure your page is working!
At the end of the Setup, your code should look like this (try to match the spacing):
<html>
<body>
<h1>About Me</h1>
</body>
</html>
Greeting and Basic Information
Next, add some basic information about yourself.
- Under the
h1
header tag, add in a<p></p>
paragraph tag welcoming the user to your page - Add another paragraph containing your name
- Add another paragraph containing your grade level
- Add another paragraph containing your hometown
At the end of this section, your code should look something like this:
<html>
<body>
<h1>About Me</h1>
<p>Welcome to my page!</p>
<p>My name is Arthur Read</p>
<p>I am in 3rd grade</p>
<p>I am from Elwood City</p>
</body>
</html>
Favorite Animal
Now it's time to add a picture of your favorite animal!
- Under the last
p
paragraph tag, add a smallerh3
header that says "Favorite Animal" - Add an image of your favorite animal
- Find an image somewhere online, and copy the image URL
- Add an
<img>
image tag under theh3
header - Set the
src
of the image to the URL, in quotes
- Add a paragraph with some text about your favorite animal
- Add a link to the Wikipedia page for your animal
- Find the Wikipedia page URL online
- Add an
<a></a>
anchor tag under thep
paragraph - Set the
href
of the image to the URL, in quotes - Inside of the anchor tag, insert the text "Wikipedia"
Note: For external a
elements to work in Glitch, the project must be opened in a separate window.
Final HTML
By the end of the activity, the HTML code should look something like this:
<html>
<body>
<h1>About Me</h1>
<p>Welcome to my page!</p>
<p>My name is Arthur Read</p>
<p>I am in 3rd grade</p>
<p>I am from Elwood City</p>
<h3>Favorite Animal</h3>
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSRHWrjkHIyyV_Rit7glavKHKa5htLmnC0Z5w&usqp=CAU" />
<p>Dogs are the best!</p>
<a href="https://en.wikipedia.org/wiki/Dog">Wikipedia</a>
</body>
</html>