Untitled
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>CSS Element Selector Example</title> <style> /* Element selector for all div elements */ div { background-color: lightgray; padding: 15px; border: 2px solid black; margin-bottom: 10px; text-align: center; } </style> </head> <body> <div>This is a Car</div> <div>This is a Truck</div> <div>This is an Elephant</div> <div>This is a Jeep</div> <div>This is an Aeroplane</div> </body> </html>
Leave a Comment