To create a basic layout using div
Q. Write an HTML program to create a basic layout using <div> for header, content, and footer.
<!DOCTYPE html> <html> <head> <title>Div Layout</title> </head> <body> <div style="background:#ddd; padding:10px;"><h2>Header</h2></div> <div style="padding:10px;"><p>This is the main content area.</p></div> <div style="background:#ddd; padding:10px;"><p>Footer</p></div> </body> </html>
Quickly Find What You Are Looking For
OnlineTpoint is a website that is meant to offer basic knowledge, practice and learning materials. Though all the examples have been tested and verified, we cannot ensure the correctness or completeness of all the information on our website. All contents published on this website are subject to copyright and are owned by OnlineTpoint. By using this website, you agree that you have read and understood our Terms of Use, Cookie Policy and Privacy Policy.
point.com