CSS Treehouse Club: CSS My First Web Page Changing Your HTML

help with adding a picture

so the code needs to be set to sam but i cant change the picture. help!

index.html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>All About Joy's Page</title>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel="stylesheet" type="text/css">
    <link href="style.css" rel="stylesheet">
  </head>   
  <body> 
    <img src="sam.jpg" alt="sam">

    <h1>stone</h1>

    <h2>soccer player</h2>

    <h3>oak park</h3>

    <h4>What I do:</h4>
       <p>i eat</p>

    <h4>What I enjoy doing:</h4>  
      <p>play foosball</p>

  </body>
</html>
style.css
/***********************************************
Top bar color 
***********************************************/
html {
  border-top: 20px solid #8A85A5;
}

/***********************************************
Body styling 
***********************************************/
body {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 20px;
  font-size: 1.3em;
  line-height: 1.6em;
  font-family: Helvetica Neue, Helvetica, Arial, serif;
  color: #777;
  font-weight: 300;
}

.centered {
  text-align: right;
}

/***********************************************
Image styling 
***********************************************/
img {
  border-radius: 100%;
  max-width: 340px;
}

/***********************************************
Headline styling 
***********************************************/
h1 {
  font-size: 1.5em;
  line-height: .5em;
  color: #564581;
}

h2 {
  font-size: 1em;
  line-height: 1em;
  font-style: oblique;
  color: #aaa;
}

h3 {
  font-size: .875em;
  line-height: 1em;
  font-weight: normal;
}

h4 {
  margin-top: 60px;
  font-weight: 500;
  color: #564581;
}

2 Answers

Donghyeok Yun
Donghyeok Yun
4,514 Points

Hey, I just figured your out. Just change alt="sam" to alt="Sam" You just need to capitalize s on sam and it worked on me

So I think this is a simple one! It looks like the quiz is very specific about what the alt="" attribute should be. You have lower-cased "sam" and it should be upper-cased as "Sam"

Give this html a try:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>All About Joy's Page</title>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel="stylesheet" type="text/css">
    <link href="style.css" rel="stylesheet">
  </head>   
  <body> 
    <img src="sam.jpg" alt="Sam">

    <h1>stone</h1>

    <h2>soccer player</h2>

    <h3>oak park</h3>

    <h4>What I do:</h4>
       <p>i eat</p>

    <h4>What I enjoy doing:</h4>  
      <p>play foosball</p>

  </body>
</html>