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

Jane Marianne Filipiak
Jane Marianne Filipiak
7,444 Points

What's a div tag again?

My excuse is- I've learned a lot of new jargon over the last few weeks. Now I've forgotten what a div tag means! It's a basic one, probably.

4 Answers

christopher gillis
christopher gillis
5,424 Points

I understand a div tag as an element that represents some block of space on your page.

It's the most basic building block of HTML that makes no inferences about what you're trying to do with it. As a comparison, using the p* element means you want to add some text to the page.

Hope this helps!

Edit: Just realized the forum stripped my html - fixed the problem (denoted by a *)

Emil Wallgren
Emil Wallgren
11,737 Points

Yupp...Div = Box , You can put stuff in it, you can move the box, design the box etc.

Emil Wallgren
Emil Wallgren
11,737 Points

Hey Marianne :-)

Check this out: http://www.w3schools.com/tags/tag_div.asp

Have an awesome friday!

/Emil

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

I suppose it could be short for divider or division tag. It's a way of distinguishing which parts of your document you would like CSS to target.

Think of each element on your page as a "box" in your document which has content in it, the most common of this is text. You can put text in pretty much any HTML element but the most common is div.