Menu
Coddy logo textTech

Profile Picture

Part of the Fundamentals section of Coddy's HTML journey — lesson 32 of 60.

challenge icon

Challenge

Easy

Alright, it’s time to add the profile picture! You can use any image you like. Feel free to use the link from the example below.

  1. After the first div (the header section), create another <div>. Inside it, add an <img> tag.
  2. Set the src to link to your image, and use the width and height attributes to control its size.

For example:

  • src - https://storage.googleapis.com/coddy-15505.appspot.com/public/avatars/avatar25.png
  • width - 200
  • height - 200"

Try it yourself

<!DOCTYPE html>
<html>
    <body>
        <!-- Header Section -->
        <div>
            <h1>John Doe</h1>
            <p>Web Developer | Creative Thinker</p>
        </div>
    </body>
</html>

All lessons in Fundamentals