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 Basics Structuring Your Content Grouping Content with <main> and <div>

by trying to indent the main element, I deleted it all by mistake.

by trying to indent the main element, I deleted it all by mistake.

3 Answers

Command + Z or Ctrl + Z should allow you to undo

Daesha Williams
seal-mask
.a{fill-rule:evenodd;}techdegree
Daesha Williams
Front End Web Development Techdegree Student 1,829 Points

You can press Command + Z on a Macbook or CTRL + Z on Windows to undo it.

You can also head to the top of your window and click Edit, then Undo. All of this will work if you haven't refreshed your page. If you exited it may not work I think, but if it just happened that's a quick fix by undoing by following the steps above.

Hope this helps! :)

Derek Graves
Derek Graves
838 Points

Both are correct and I had the same issue when I tried to indent the first time ctrl+] will indent for ya!

Nick Curtis
Nick Curtis
2,064 Points

Thanks! Was having trouble with this on my Windows PC.