XHTML(HTML)をもっと理解しよう
超重要!Webページの内容を示すタイトル
ここで使うタグ
<title>タイトル</title>
ホームページにタイトルを付ける
titlleタグは、ブラウザーのタイトルの他にも役割があります。お気に入り登録した時の見出しや検索結果にも使われます。titleタグはページを代表するタグと言えます。 思わずみんながクリックしたくなるようなタイトルをつけるといいでしょう。ローマ字や英語など普段あんまり使わない言葉じゃなくて、みんながよく使う、誰でも知ってるような、タイトルをつけた方が人気が出るホームページが作れますよ。
<title>タグは<head>と</head>の間に入れます。
ホームページでは必ずtitleタグをつける必要があります。
ホームページ ソース
XHTML(HTML)
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=shift_jis"> /
<link rel="stylesheet" href="style.css" type="text/css" />
<title>タイトル</title>
</head>
<body>
<div id="body">
<div id="box-1"></div>
<div id="box-2"></div>
<div id="box-3"></div>
<div id="box-4"></div>
</div>
</body>
</html>
CSS(スタイルシート)
#body {
width :800px ;
border: 1px solid #9acd32;
}
width :800px ;
border: 1px solid #9acd32;
}
#box-1 {
border-bottom: 1px solid #9acd32;
background-image: url("img/top.png");
}
border-bottom: 1px solid #9acd32;
background-image: url("img/top.png");
}
#box-2 {
float : left;
width :200px;
}
float : left;
width :200px;
}
#box-3 {
float : right;
width :600px;
}
float : right;
width :600px;
}
#box-4 {
clear: both;
width: 800px;
background-color : #9acd32;
}
clear: both;
width: 800px;
background-color : #9acd32;
}