Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
What in the Head1:57 with Joy Kesten
Dissect the head element as well as what you should include in the head and why.
The head section can have the following tags:
<title>, <style>, <meta>, <link>, <script>, <noscript>, and <base>.
Now that we've looked at the finished page in the browser and
figured out what we need, let's go to the code and start to break it down.
Looking at our html document,
you can see we have the head element down here and the body element below that.
It kind of sounds like the construction of a human, right?
Well, sort of.
The head element is used to specify information about the page,
such as the title of the page, which we have right here.
The head element can provide a lot of other information as well
using these meta tags.
Here we've used a meta tag element to define the character encoding word.
Character encoding tells the browser how it should interpret the characters of
Unless you have a very special use case, you should probably use utf-8,
like we did here.
The second meta tag is setting up the page for multiple displays.
This means it will help your page work well and
look good whether you're on a phone, tablet, or desktop computer.
Next is the title tag.
There can only ever be one title tag and it's very important to include.
The text inside this title tag would be used as the title for your page in
the search engine and will appear at the top of your browser window or in a tab.
You can see its right up here.
The last thing in our head is the length to our Style Sheets.
For the purposes of showing you just HTML in this course,
I've deleted these paths, and you can see here that they're blank.
If you know how, and want to add them back in, that's up to you.
If you don't know how, I'll show you in the CSS stage of this course.
That about wraps it up for the head.
Next, see if you're picking up everything I'm putting down,
before moving to editing the content in the body.
You need to sign up for Treehouse in order to download course files.Sign up