How do you set size of the text for some element?

Experience Level: Junior
Tags: CSS

Answer

Example

p {
    font-size: 20px, smaller, larger;
}
Related CSS job interview questions
CSS for beginners
CSS for beginners

Are you learning CSS? Try our test we designed to help you progress faster.

Test yourself