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!

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 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 :)