The Basic Structure of a Web Page5:20 with Treasure Porth
You will get a quick overview of all the elements that make up a basic web page, from the internal workings of doctype and head, to the parts that everybody sees: the header, nav, main, and footer.
- <!DOCTYPE html> - A piece of code that tells the browser what kind of information it’s getting, so that it can display your web page properly.
<html> - All of your code must be between tags.
<head> - Hold all the important behind-the-scenes information about your web page, like the title of your web page, and a links to a CSS stylesheets.
<title> - Stuff between title tags doesn’t appear on the web page, but you’ll see it in search engine results and browser tabs.
- <body> - Everything that displays in the browser -- header, navigation, images, content -- goes between the body tags.
You need to sign up for Treehouse in order to download course files.Sign up