Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.