Syntax error Type Selectors in CSS

Type Selectors in CSS



A selector is an HTML tag at which a style will be applied. This could be any tag like <h1> or <table> etc.

With the type selector, set for HTML tags like h1, h2, h3, p, etc:

h2 {
   color: #FF0000;
}

Set for p:

p {
   color: #800000;
}
Updated on: 2020-01-30T07:24:30+05:30

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements