1. はじめに
本記事では、「CSSの概要・役割」について記載する。
2. CSSとは?
・Cascading Style Sheetsの略。 ・文字の色やサイズ、レイアウトを設定できる。 ・HTMLで書かれた文書のスタイルを指定するための言語。
3. HTMLとCSSの役割分担
・HTML:文書構造
・CSS:見た目
4. CSSの基本ルール
基本的な型は、
セレクタ(どこの){ プロパティ(何を):値(どうする) };
となる。
【サンプル】
styles.css
h1 {
color: #ff0000;
}
5. おわりに
次項:CSS実践(1) 「インライン」「内部参照」「外部参照」に続く。