Make the head
Everything in our HTML file will go between the opening <html> and closing </html> tags.
There are always two parts to an HTML file: the head and the body. Let's start with the head.
The head contains information about your HTML file, like its title. The title is what we see in the browser's title bar or page tab. For example the title of this page is "HTML Basics | Codecademy".
Instruction
Let's add a head and a title to our webpage. If you get stuck at any point, click "Stuck? Get a hint!" below for an example.
  1. Add an opening <head> tag and closing </head> tag.
  1. Between the <head> tags, add in an opening <title> tag and closing</title> tag.
  1. Between the <title> tags, write in a title for your page. For example, "My Webpage."
  1. Press "Save & Submit Code" to continue
Hint
<html> <head> <title>My Webpage</title> </head></html>




Make the head
HTMLファイルは<html></html>の間に書くと以前お話ししましたね。

HTMLファイルにはheadとbodyという2つのタグも置かれます。

HTMLファイルのタイトルのような情報もheadに含まれます。
タイトルはブラウザのタトルバーやタブで見ることができます。たとえばここの”HTML Basic | Codecademy”のようにね。

課題
headとtitleをページにつけましょう。
Struck? Get a hint!を見ると、例が参照できます。

  1. <head></head>をつけましょう。
  2. 次に<title></title>をつけましょう。
  3. <title>の間にたとえば”My webpage”のようなタイトルを書きましょう。
  4. Save&Submit Codeを押しましょう。
ヒント
Codeはこのように見えるようにしてね。
<html>
  <head>
    <title>My Webpage</title>
  </head>
</html>