Wrapping H1 and P in DIV`


#1

I am typing the code according to the example, and it's not working

<!DOCTYPE html>
<html>
  <body>
<div class="nav"
  <div class="container">
	<ul>
	  <li>David Mason</li>
	  <li>Browse</li>
	</ul>
	<ul>
	  <li>Sign Up</li>
	  <li>Log In</li>
	  <li>Help</li>
	</ul>
  </div>
</div>
<div class="jumbotron"
  <div class="container">
    <h1>Find a Place to Stay</hi>
    <p>Rent from people in over 34,00 cities and 192 countries</p>
  </div>
</div>
	
  </body>
</html>

What am I doing wrong?


#2

Take a look at the opening tag of your first div. Pretty sure it's the problem here.

In the future, I recommend linking to the exercise you're on.


#3

https://www.codecademy.com/en/courses/web-beginner-en-ez2n4/0/5?content_from=make-a-website%3Ahtml-elements

I fixed it, still saying Oops, try again. Place your h1 element and p element in between

..</div> tags.

#4

U forgot to close it


#5

<!DOCTYPE html>
<html>
  <body>
<div class="nav"
  <div class="container">
	<ul>
	  <li>David Mason</li>
	  <li>Browse</li>
	</ul>
	<ul>
	  <li>Sign Up</li>
	  <li>Log In</li>
	  <li>Help</li>
	</ul>
  </div>
</div>
<div class="jumbotron">
  <div class="container">
    <h1>Find a Place to Stay</hi>
    <p>Rent from people in over 34,00 cities and 192 countries</p>
  </div>
</div>

#6

Each opening div tag must have a respective closing tag like this:

<div class="something">
</div>

Also, check the spelling on your closing h1 tag.


#7

I fixed that problem. Just having issues with the Bootstrap Exercise #7 - Image 2. All that I put for the code (carefully putting the code like the instructions said, it keeps telling me to add a thumbnail div. Not sure why it's saying that.