Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS height property</title> <style> p { height: 50px; padding: 10px; background-color: #f0e68c; } img { height: 250px; border: 5px solid #429ba8; } </style> </head> <body> <div><img src="/examples/images/kites.jpg" alt="Flying Kites"></div> <p><strong>Note:</strong> Play with the <code>height</code> property value to see how it works.</p> </body> </html>