How do you style HTML and CSS


#1

To style an HTML element using CSS, you must first select that element in the CSS file. For example, to style a

element, the syntax to select it using CSS is:

p {

}

this is what I dont understand


#2

This code selects the p element. For example if you did this.

p {
  color: blue;
}

The text "Hello World" in the p tags on your HTML page like this: <p>Hello World</p>. Would be blue.