Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Introduction to HTML and CSS (2016) Adding a New Web Page Write the CSS

Kenneth Garber
Kenneth Garber
1,914 Points

The Class Function for my h2 section in HTML is not identifying properly. Just shows as regular text

It worked properly when identifying class='main-image'

However, under <h2> class='section-title' Summary of Qualifications</h2> it just previews as text.

<!DOCTYPE html>
<html>
  <head>
  <title>Kenny Garber's Resume</title>
    <link rel="stylesheet" href="Resume.css">
  </head>
  <body>
      <img src="http://placeimg.com/200/200/tech" alt="Kenny Garber, Web Developer" class='main-image'>
      <h1>Kenneth Garber, Web Developer</h1>
      <h2> class='section-title' Summary of Qualifications</h2>
      <ul>
        <li>Experience as a freelance web developer</li>
        <li>Experience with HTML, CSS, and Javascrip</li>
        <li>Bachelor of Science, Economics</li>
      </ul>
  </body>
</html>

1 Answer

Michael Rousis
Michael Rousis
3,765 Points

In <h2> class='section-title' Summary of Qualifications</h2> you are putting the class outside the <h2>.

Try: <h2 class="section-title">Content</h2>