Ironhack

HTML & CSS

Images to download

HTML

<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Spotify</title>
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400" rel="stylesheet">
    <link rel="stylesheet" href="./css/style.css" />
  </head>
  <body>
    <header>
      <img src="./images/spotify-logo.png" />

      <nav>
        <a href="#0">Premium</a>
        <a href="#0">Discover</a>
        <a href="#0">Help</a>
        <a href="#0">Download</a>
      </nav>
    </header>
    <section class="features">
      <h2>What's on Spotify?</h2>
      <ul>
        <li>
          <img src="./images/icon-sound.png" />
          <h3>Millions of Songs</h3>
          <p>There are millions of songs on Spotify.</p>
        </li>

        <li>
          <img src="./images/icon-waveform.png" />
          <h3>HD Music</h3>
          <p>Listen to music as if you were listening live.</p>
        </li>

        <li>
          <img src="./images/icon-devices.png" />
          <h3>Stream Everywhere</h3>
          <p>Stream music on your smartphone, tablet, or computer.</p>
        </li>
      </ul>
    </section>
  </body>
</html>

CSS

<link rel="stylesheet" href="./css/style.css" />
body {
  font-family: 'Open Sans';
  font-weight: lighter;
  margin: 0;
  background-color: #D3D3D3;
}

header {
  background-color: white;
}

h2 {
  font-size: 35px;
  text-decoration: underline;
  text-underline-position: under;
}

h3 {
  font-size: 30px;
}

ul {
  padding: 0;
  list-style: none;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding-left: 3%;
  padding-right: 3%;
  font-size: 25px;
}

header img {
  height: 75%;
}

header a {
  margin-left: 25px;
  color: black;
  text-decoration: none;
}

header a:hover {
  text-decoration: underline;
}

.features {
  text-align: center;
}

.features h2 {
  text-decoration-color: #00c76f;
}

.features h3 {
  margin-top: 0;
  color: #00c76f;
}

.features ul {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 7%;
  margin-bottom: 7%;
}

.features li {
  width: 20%;
}

.features p {
  font-size: 25px;
}

.features img {
  width: 50%;
}

Want to learn more?

Here are some extra resources to learn more about HTML & CSS.

Of course, to get better you need to continue to build Websites!