3 of 11
This lesson is closed. Finish the one before it. Do the practice. Pass the assessment. Then this one opens.
Back to the lesson. Three tries are used. Read this again, then try the code.
You finished. The lesson is open again.
head The title, and the link to the paint. A visitor does not see the head.
body The header, the menu, the sections, the footer. A visitor sees all of this.
Every page starts with the same bones. A first line that says this is HTML. Then html, which holds the whole page. Inside it, head and body. Head is information. Body is what a person sees.
The title lives in the head. It is the name on the browser tab, not the big heading. The big heading is an h1, and it goes in the body. The link to your CSS also lives in the head, so the paint loads before the page is shown.
A page with no doctype, no head, or no title looks unfinished before the marker reads a word of content. Copy this skeleton every time. Then add the pieces inside the body.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Your Name</title>
<link rel="stylesheet" href="yourname.css">
</head>
<body>
</body>
</html><!DOCTYPE html>The first line. It tells the browser which kind of HTML this is. Copy it. It has no closing label.<html lang="en">The page. lang="en" says the words are English.<head>Hidden information: the title, and the link to the paint. Nothing in the head is drawn on the page.<title>Your Name</title>The browser tab. Replace Your Name. This is not the h1.<link rel="stylesheet" href="yourname.css">Calls the paint file. This label does not close with a second link label.<body>Everything from the header to the footer goes between body and /body.The next lesson opens after you practice and pass the assessment.
The bones are almost right. The first line is missing. Add it.
The code is right. Start the assessment when you are ready. The lesson stays closed until both answers are right.
The lesson is closed. Pick one answer each, then mark it. A wrong answer tells you why, what to do, and what to remember.