CSS: can the body have a class and id?

The tutor shares some findings about css.

Experimenting with CSS lately, an idea came to me: can the body of an html page have an id? How about a class?

Apparently, the body can have either. Why not, one might ask. To me, since it’s just “the body”, giving it an id or class isn’t an obvious idea.

Anyway, the body can be styled using CSS class or id designations. I’ll be giving some examples in future posts:)

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply