Help please, no idea what Im doing wrong


#1

https://www.codecademy.com/courses/learn-html-elements/lessons/common-html-elements/exercises/text-content-tags-html?action=lesson_resume&course_redirect=learn-html#=

I followed the very simple instructions correctly I thought, but I got this: Did you add your

below ‘Countries with Small Brown Bear Populations’?

Exercise 5 on that lesson refuses to be completed even though it’s correct

It looks like it’s supposed to on the webpage so I don’t understand the problem

<!DOCTYPE html>
<html>
  <head>
    <title>Brown Bears</title>
  </head>
  <body>
    <h1>The Brown Bear</h1>
    <div id="introduction">
      <h2>About Brown Bears</h2>
      <p>The brown bear (Ursus arctos) is native to parts of northern Eurasia and North America. Its conservation status is currently Least Concern. There are many subspecies within the brown bear species, including the Atlas bear and the Himalayan brown bear.
      </p>
      <h3>Species</h3>
      <h3>Features</h3>
      <p>Brown bears are not always completely brown. Some can be reddish or yellowish. They have very large, curved claws and huge paws. Male brown bears are often 30% larger than female brown bears. They can range from 5 feet to 9 feet from head to toe.
      </p>
    </div>
    <div id="habitat">
      <h2>Habitat</h2>
      <h3>Countries with Large Brown Bear Populations</h3>
      <h3>Countries with Small Brown Bear Populations</h3>
      <p>Some countries with smaller brown bear populations include Armenia, Belarus, Bulgaria, China, Finland, France, Greece, India, Japan, Nepal, Poland, Romania, Slovenia, Turkmenistan, and Uzbekistan.
      </p>
    </div>
    <h2>Media</h2>
  </body>
</html>

#2

It may have something to do with the location of your paragraph’s closing tag (</p>).

Your paragraph currently looks like this:

<p>Some countries...
</p>

Whereas, it should look like this:

<p>Some countries...</p>

#3

Thank you, didn’t work though, I feel like I’ve tried everything at this point. I guess I’ll just skip this lesson and learn the basic elsewhere


#4

Compare yours to this…

<!DOCTYPE html>
<html>
  <head>
    <title>Brown Bears</title>
  </head>
  <body>
    <h1>The Brown Bear</h1>
    <div id="introduction">
      <h2>About Brown Bears</h2>
      <p>The brown bear (Ursus arctos) is native to parts of northern Eurasia and North America. Its conservation status is currently Least Concern. There are many subspecies within the brown bear species, including the Atlas bear and the Himalayan brown bear.</p>
      <h3>Species</h3>
      <h3>Features</h3>
      <p>Brown bears are not always completely brown. Some can be reddish or yellowish. They have very large, curved claws and huge paws. Male brown bears are often 30% larger than female brown bears. They can range from 5 feet to 9 feet from head to toe.</p>
    </div>
    <div id="habitat">
      <h2>Habitat</h2>
      <h3>Countries with Large Brown Bear Populations</h3>
      <h3>Countries with Small Brown Bear Populations</h3>
      <p>Some countries with smaller brown bear populations include Armenia, Belarus, Bulgaria, China, Finland, France, Greece, India, Japan, Nepal, Poland, Romania, Slovenia, Turkmenistan, and Uzbekistan.</p>
    </div>
    <div id="media">
      <h2>Media</h2>
    </div>
  </body>
</html>

#5

Thank you, I suppose my formatting was a bit off, now I know! Thanks


#6

That line is missing from your code.


#7

Yes ok, so it wasn’t the formatting then. Thanks again friend


#8

In HTML it is never about formatting since the whitespace is ignored. There may be one or two lessons dealing with indentation that are the exception, since the SCT is looking for it. In a normal sense, though, we only format for our readers (and to help with identifying nested layers).

P.S. Don’t forget to close that last div.


#9

Ok so any error won’t have to do with whitespace, it’s just for readability, got it.

Thanks once again


#10

A post was split to a new topic: Gossamer X-Files Fanfiction


#11

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.