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 Treehouse Club: HTML Publish a Story HTML Structure

where is the error in the code

it is showing error

index.html
<!DOCTYPE html>
<html>
<head>
  <title>bhargava</title>
  <meta charset='utf=8>
  <style>
    h1<text-align:middle;color:blue>
                 </style>
                 </head>
                 <body>
                   <h1>bh</h1>
                         <p> "My first paragraph!" </P>
                                         </body>
                 </html>

2 Answers

Andreas Frost Nordstrøm-Hansen
Andreas Frost Nordstrøm-Hansen
2,443 Points

Im not sure but i think you are trying to do some CSS.

Ive changed it abit. Try seeing if this works?

<!DOCTYPE html>
<html>
<head>
  <title>bhargava</title>
  <meta charset='utf=8>
  <style>

    h1 {

text-align: middle;
color:blue;
}
                 </style>
                 </head>
                 <body>
                   <h1>bh</h1>
                         <p> "My first paragraph!" </P>
                                         </body>
                 </html>
Andreas Frost Nordstrøm-Hansen
Andreas Frost Nordstrøm-Hansen
2,443 Points

To finish the challenge you are in. All you need is this.

<!DOCTYPE html>

<html>
  <head>

  </head>

  <body>

    <p> My first paragraph</p>

  </body>




</html>