HTML Introduction to HTML and CSS 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,662 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>