css firstoftype YouTube
![](https://www.wikihow.com/images/thumb/5/53/Define-a-CSS-Class-Style-Step-4-Version-2.jpg/aid4590662-v4-728px-Define-a-CSS-Class-Style-Step-4-Version-2.jpg)
How To Create A Class In Css File Várias Classes
The W3Schools online code editor allows you to edit code and view the result in your browser
![](https://lf3-static.bytednsdoc.com/obj/eden-cn/nuvjhpqnuvr/modern-website/tutorials/c03-css-expect.jpg)
Add Style Modern.js
The :first-of-type Selector is used to targeting the first child of every element of it's parent. if we want to style the first child of an element without giving a class, we can use it. Syntax: :first-of-type { //property } Example: HTML