![見出し画像](https://assets.st-note.com/production/uploads/images/42484836/rectangle_large_type_2_d900e927448ae4022762ea61fcf04271.png?width=800)
Photo by
yoshizukin
スタイルの種類
・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;} ⇒ リンクの下線を消す
この記事が気に入ったらサポートをしてみませんか?