<html> <head> <style> div { text-transform: uppercase; } div:first-letter { text-transform: uppercase; } p::before { content: "This text should be uppercase."; text-transform: uppercase; } </style> </head> <body> <div>This text should be uppercase.</div> <p></p>