<!DOCTYPE html> <html> <head> <style> .style{ font-size:20px; font-transform:uppercase; color:white; background-color:lightgreen; } </style> </head> <body> <div class="style">This is the division element. Its background-color is light green and the font size of text is 20px. The color of text is blue. Here, the class attribute is being used that styles the div element.</div> </body> </html>
Run
×
Share