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 Introduction to HTML and CSS (2016) HTML: The Structural Foundation of Web Pages and Applications HTML Lists

How can i indent the list items like 01:39?

How can i indent the list items like 01:39?

5 Answers

andren
andren
28,558 Points

You can indent by hitting the tab key on your keyboard, it is typically the key above the caps lock button on the left side of your keyboard.

To indent groups of code like shown in the video you just have to highlight all of the lines you want to indent and hit tab while they are selected.

You can also decrease the indentation of a group of lines by hitting shift + tab.

thanks man, Just had the same problem

The video doesn't tell you "how" the list was indented. Thank you for the info.

Thanks dude. I guess they overlooked that minor detail.

Thanks, this is very helpful.

Curtis Vanzandt
Curtis Vanzandt
9,165 Points

Do you mean in your code or in your browser? If you want to indent it in your code, you can use the "tab" key on your keyboard. This will make it easier to read. If you view your HTML in your browser, the list items should be just a bit indented. If you want them more indented, you may need to add a margin to the left of the list items. You could code styling directly in the list items.

<ul style="margin-left:5px"> is just an example of this.

This is a good tip to know.

If the videos explained every keyboard trick and shortcut, they would become too long. But if keyboard shortcuts were listed below in the Teacher's Notes, that could be helpful.

Thankxx for the help had the same problem .

Siti Mariam Mazlan
Siti Mariam Mazlan
5,805 Points

I didnt know what indent was either but i know someone probably already ask the question. Thanks!

Had the same problem, the video should probably explain that, 'Indent by pressing tab'. It may have previously and I missed it, either way thanks this helped.