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.

CSS CSS Flexbox Layout Flexbox Properties Changing the Order of Flex Items

David Finney
David Finney
4,116 Points

Question about SEO Comment.

In the video and in the notes it references SEO:

"You can structure an HTML document for SEO or accessibility first, then rearrange the content without ever editing the HTML."

Can someone give a little more detail? It is talked about almost in passing but is also written in the notes.

1 Answer

Alan Brown
Alan Brown
20,382 Points

Hi David Finney, I think the big takeaway with this statement is to focus on the information architecture of the page in your mark-up. Pay attention to the document object model. This will ensure your page is coded for SEO and more accessible.

Pay attention to the heading tags you use. Have only one H1 in your page near the top and cascade down. That is to say your section heading would be H2, and nested under those H3 etc.

If you/one concentrates on this mark-up here first and make it clear without styling you’ll be in a good place. Only then change focus and start styling your page with CSS.