5/14のまとめ

確認テスト


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja"
lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>確認テスト</title>
<style type="text/css">
* {
  margin: 0;
  padding: 0;
}
body {
  color: #fff;
  font-family: Meiryo, "メイリオ", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴシック Pro W3", Osaka, sans-serif;
  background-color: #ccc;
}
#container {
  margin: 20px auto;
  width: 800px;
  height: auto;
  padding: 10px;
  background-color: #fff;
}
#header {
  width: 800px;
  height:100px;
  background-color: #a3bed5;
}
#wrapper {
  overflow: auto;
  padding: 10px 0;
}
#content {
  width: 560px;
  height: 290px;
  float: right;
  padding: 10px;
  background-color: #dcd78a;
}
h1{
  font-size: 1.85em;
  font-family: serif;
  padding: 20px 30px;
}
#sidebar {
  width: 200px;
  float: left;
  background-color: #9cc56e;
}
#sidebar ul {
  list-style-type: none;
}
#sidebar li a {
  text-align: center;
}
#sidebar a:link {
  color: #000;
  line-height: 80px;
  margin: 10px;
  text-decoration: none;
  display: block;
  background-color: #9cc56e;
  background-image: url(btn.jpg);
  background-repeat: repeat_x;
  border: solid 2px #72bd60;
}
#sidebar a:visited {
  color: #000;
  text-decoration: none;
  border: solid 2px #72bd60;
}
#footer {
  clear: both;
  height: 50px;
  background-color: #e0b9d2;
}
address {
  font-style: normal;
  text-align: center;
  padding: 15px;
}
</style>
</head>
<body>
<div id="container">
<div id="header">
<h1>ここにサイトタイトルが入る</h1>
</div>
<div id="wrapper">
<div id="content">
<h2>ここに見出しが入る</h2>
<p>ここに本文が入る</p>
</div>
<div id="sidebar">
<ul>
<li><a href="#">banner</a></li>
<li><a href="#">banner</a></li>
<li><a href="#">banner</a></li>
</ul>
</div>
</div>
<div id="footer">
<address>ここに連絡先のテキストが入る</address>
</div>
</div>
</body>
</html>

解答を見たら、li にimg 要素が使われている。どうもli にはbackground-image という思い込みがあった。

授業メモ

上位表示
  • 意図的にいろいろ(キーワード、リンクなど)埋め込んでみる
  • ひらがなは変換機能で漢字にされてしまう→漢字のキーワードにする(このブログで例えるなら"晴れ雨晴れ")
  • 記事の中に検索されたいキーワードを入れてしまう
Dreamweaver
  • フォルダ管理をしっかりやる
  • コーダー用に設定
  • サイト→新規サイトor サイトの管理を選択→新規作成
    サイト名とフォルダーを選ぶ

Dreamweaver についてのメモが消えてしまったので分かるところだけ