Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed HTML Basics!
You have completed HTML Basics!
Preview
The <main> element represents the main content inside the body of the page, and <div> is a generic container that groups content.
Content Snippets
"Virtual reality was once the dream of science fiction. But the internet was also once a dream, and so were computers and smartphones. The future is coming." - Mark Zuckerberg
https://www.facebook.com/zuck/posts/10101319050523971
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
technologies identify exactly where
the main content of a page begins.
0:00
The main content of our homepage
consists of the about, articles, and
0:04
contact section, so let's place those
sections inside a main element.
0:08
So I'll scroll up to
the first about section and
0:13
type an opening main tag,
then I'll include the closing
0:17
main tag right below the articles
closing section tag.
0:22
And I'm also going to cut and paste our
contact section inside the new main element.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up