How do you properly use Indentation. I cannot figure out what is wrong with mine?


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-html-css/lessons/common-elements/exercises/html-comments?action=lesson_resume
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

Replace this line with your code.

Animals Around the World

The Brown Bear

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.

Learn More

The following are subspecies of bears:

  • Arctos
  • Collarus
  • Horribilis
  • Nelsoni (extinct)

The following countries have the largest populations
of brown bears:

  1. Russia
  2. United States
  3. Canada

A brown bear

<do not remove the three backticks above>

#2

Hi @rickyh64,

The link you provided leads to the exercise

COMMON HTML ELEMENTS: Comments

And you asked question about indentation. Did you provide the wrong link?


If you’re asking about the 14.Comment exercise,

The exercise’s instruction:

Add a comment anywhere in index.html.

So you just need to add a comment in the index.html, following the instructions at the side in order to pass.


If you’re asking about 13.Indentation exercise, you do not need to do anything, that exercise is basically explaining what is indentation. You just need to click “Next”.

If you don’t understand what is indentation.

An example:

<!DOCTYPE html>
<html>
<head>
<title>Animals Around the World</title>
</head>
<body>
<h1>The Brown Bear</h1>
<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>
<a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank">Learn More</a>
<p>The following are subspecies of bears:</p>
<ul>
<li>Arctos</li>
<li>Collarus</li>
<li>Horribilis</li>
<li>Nelsoni (extinct)</li>
</ul>
<p>The following countries have the largest populations of brown bears:</p>
<ol>
<li>Russia</li>
<li>United States</li>
<!--<li>Canada</li>-->
</ol>
<a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank"><img src="https://s3.amazonaws.com/codecademy-content/courses/web-101/web101-image_brownbear.jpg
    " alt="Bear"/></a>
</body> 
</html>

The above code is without indentation.

<!DOCTYPE html>
<html>
<head>
  <title>Animals Around the World</title>
</head>
<body>
  <h1>The Brown Bear</h1>
  <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>
  <a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank">Learn More</a>
  <p>The following are subspecies of bears:</p>
  <ul>
    <li>Arctos</li>
    <li>Collarus</li>
    <li>Horribilis</li>
    <li>Nelsoni (extinct)</li>
  </ul>
  <p>The following countries have the largest populations of brown bears:</p>
  <ol>
  	<li>Russia</li>
    <li>United States</li>
    <!--<li>Canada</li>-->
  </ol>
  <a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank"><img src="https://s3.amazonaws.com/codecademy-content/courses/web-101/web101-image_brownbear.jpg
    " alt="Bear"/></a>
</body> 
</html>

The above code is with indentation.


Hope this helps.

:slight_smile:


#3

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