見出し画像

スタイルの種類

・color:文字の色を指定

h1{color: red;} ⇒ 文字色を赤

カラー


・font-size:文字の大きさを指定

h1{font-size: 20px;} ⇒ 文字の大きさを20px

カラー


・text-align:文字の行揃えを指定

h1{text-align: center;} ⇒ 行を中央揃え

カラー


・font-weight:文字の太さを指定

p{font-weight: bold;} ⇒ 文字を太く

カラー


・text-decoration:文字の装飾を指定

h1{text-decoration: line-throught;} ⇒ CSSの練習に中央線
p{text-decoration: underline;} ⇒ lorem ipsumに下線
a{text-decoration: none;} ⇒ リンクの下線を消す

カラー



この記事が気に入ったらサポートをしてみませんか?