Home
HTML
HTML Div
Tryit: A simple div example
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <style> div { background-color: #FFF4A3; } </style> <body> <h1>HTML DIV Example</h1> Lorem Ipsum <div>I am a div</div> dolor sit amet. <p>The yellow background is added to demonstrate the footprint of the DIV element.</p> </body> </html>