<!DOCTYPE html> <html> <head> <style> .style1{ font-size:20px; font-transform:uppercase; } .style2{ color:blue; background-color:lightgreen; } </style> </head> <body> <div class="style1 style2">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 more than one class names are being used that styles the div element.</div> </body> </html>
Run
×
Share