【CSS】background-color - 背景色
CSSのbackground-colorプロパティについてご紹介します。
background-color
background-colorは背景色を示すプロパティです。
基本構文
background-color: 値;
サンプル
<style>
div {
width: 100px;
height: 100px;
background-color: yellow;
}
</style>
<div></div>