CBSE Class 10 Computer Applications Question 3 of 37

Cascading Style Sheets (CSS) — Question 3

Back to all questions
3
Question

Question 3

How do you make each word in a text start with a capital letter ?

Answer

To make each word in a text start with a capital letter we set the value of text-transform property to capitalize.

For example, to make each word in all <H1> elements start with a capital letter, we define a rule as:

h1 { text-transform : capitalize ; }