Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS width property</title> <style> p { width: 300px; background-color: #f0e68c; } img { width: 100px; border: 5px solid #708090; } </style> </head> <body> <p>Change the value of <code>width</code> property to see how it works.</p> <div><img src="logo.png" alt="Logo"></div> </body> </html>