HTML Introduction to HTML and CSS Getting Familiar with HTML and CSS Welcome to HTML and CSS

PARAG SHARMA
PRO
PARAG SHARMA
Pro Student 1,382 Points

Is the "name" class has affect on <h1> tag ?

Mam, you mention that <h1> tag has two classes i.e tag & "name". "tag" class in css is being written directly but "name" class is written with "nav" class i.e ".nav .name {}". Is the "name" class has affect on <h1> tag ?

1 Answer

Adam Duffy
Adam Duffy
4,461 Points

The class “.name” and “.tag” will both apply to the h1 element. Any element with a class “.name” or “.tag” will have the properties applied to them if specified in your CSS. You will learn more about applying multiple classes on elements as you continue.