How do you set font of the text for some element?
Experience Level:
Junior
Tags:
CSS
Answer
.heading {
font-family: 'Times New Roman', Times, serif;
}
Related CSS job interview questions
-
What are the biggest problems that make your web page look unprofessionally?
CSS Junior -
How do you position an element on the screen to the right or left?
CSS Junior -
How do you set size of the text for some element?
CSS Junior -
How do you style the element to have rounded corners?
CSS Junior -
How can you verify whether the element is block or in-line and how can you change this?
CSS Junior