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 Text Preformatted Text

Confussion .

If we can do all text formating in CSS then why do we even learn them in HTML?

3 Answers

Some apps like pocket allow you to save web pages for later offline reading, the css is not used at all, the app applies its own styling to the html in the document, there are many other cases like this so structured, semantic HTML is super important.

Sarah Bradberry
Sarah Bradberry
7,115 Points

It makes it easier to see the hierarchy of your page content when looking at your html code. Also heading tags (H1, H2) are important for search engines working out what your headings are.

awesome. thanks sarah :)