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 HTML Forms HTML Mastery

Gonzalo Gandia
PLUS
Gonzalo Gandia
Courses Plus Student 975 Points

In the last challenge of HTML for beginners, it starts by asking to create a div, but we didn't learn it yet.

How can we find out about "div" in HTML when it wasn't covered in HTML for beginners. However, it's now asking us to create a div in the final challenge

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>HTML Mastery Challenge</title>
  </head>
  <body>
    <h1>HTML Mastery Challenge</h1>

    <!-- Write your code below -->


  </body>
</html>

2 Answers

Bradley Martin
Bradley Martin
10,581 Points

Don't worry - it's all good. I've just had a very quick scan through the course and Divs are covered in Global Structure Part 2 (which is in the Introduction section of this course) - https://teamtreehouse.com/library/html/introduction/global-structure-part-2

...Nick starts to discuss them at around 1:40.

As for Divs themselves, the concept behind them is very straight forward. It pays to think of them as simply being a container or box into which you can place any collection of content or code, so for example, a very simple Div might look something like this (and apologies for the lack of proper formatting)...

<div>
<p>Hello World!</p>
</div>

It need not be any more complex than that! :-)

Good luck with it.

Gonzalo Gandia
PLUS
Gonzalo Gandia
Courses Plus Student 975 Points

Thanks Bradley! I can't believe I missed that...I better pay better attention :)