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

SAMPSON DANQUAH
SAMPSON DANQUAH
2,031 Points

image tag

in the image tag, I keep changing the my picture from joy.jpg to Sam.jpg and alt from joy to Sam but It keeps telling me I'm wrong. what do I do and how I do I move to the next step.

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>Sampson Danquah</h1>

    <h2>military</h2>

    <h3>San Diego</h3>

    <h4>What I do:</h4>
       <p>I'm a teacher at Treehouse, but you should write in what you do here!</p>

    <h4>What I enjoy doing:</h4>  
      <p>When I'm not writing code, I like to surf and play music. Your turn, write in something that makes you happy, or things you like to do in your free time.</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;
}

1 Answer

Ryan Dudley
Ryan Dudley
Treehouse Project Reviewer

I think this is just a simple case sensitivity issue. It is not passing, because they want you to change the image to sam.jpg not Sam.jpg. It is important to note, that a URL is case-sensitive past the domain name depending on what type of webserver the site is running on.

If the webserver is running a UNIX based OS such as Linux it will be using the EXT4 filesystem, which is case sensitive and in this case Sam.jpg and sam.jpg would be referring to two different files. However if the webserver was running a windows based OS, it would be using the NTFS filesystem which is not case sensitive and Sam.jpg and sam.jpg would be referring to the same file.

Don't worry too much about knowing all of this just yet, it is merely there for a reference in case you wanted to know what was going on. The main thing to note is that some webservers require you to be exact with your filenames, as in this case.

Hope this was helpful, and keep at it!