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 greater and less than signs

When should you use the less than and greater than signs in html? I know you use them when your declaring the section like head, body..etc. But then when you make an unordered list you also use it to point at the name of your link such as "about us", why is that?

1 Answer

Hayden Taylor
Hayden Taylor
5,076 Points

In html the < > is strictly used for tags. Some tags require open and closing tags --> <ul></ul> some takes like <img src"" alt=""> only require to open. Mainly the difference is open closing tag elements will have the potential to contain other elements where elements that only need an opening tag will not be containing other elements.

the < is always used to start the tag and the > is used at the ending and a closing tag uses /> instead.