CSS id selector

  • Post category:CSS

Get the code of CSS id selector and watch video tutorials. You can practice using our code editor. Our practical guide will make your learning journey much easier. You can explore the tutorial and learn.

<p id="para">First Paragraph.</p>
<p id="para2">Second Paragraph.</p>
#para {
  color: blue;
  background: yellow;
  text-align: center;
  font-weight: bold;
  padding: 10px;
}
#para2 {
  color: white;
  background: cyan;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
}