Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>The title of the document</title> <style> div { height: 60px; background-color: #1c87c9; color: #eee; } p { height: 30px; background-color: #8ebf42; color: #eee; } </style> </head> <body> <h2>Height property example</h2> <div>The height of this div element is set to "60px".</div> <p>The height of this paragraph is set to "30px".</p> </body> </html>