HTML Box Container
From w3cyberlearnings
Contents |
HTML - Box
A box container uses to make a box for a form or any HTML elements. This tutorial gives you an idea on how to create a box container by using the HTML elements and CSS.
Example TRY-IT
<!DOCTYPE html> <html> <head> <title>Box</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style> .box1,.box2,.box3 { border:2px solid #f3f3f3; width:140px; padding-left: 8px; padding-right: 8px; } .box2 { background-color: blue; color:white; } .box3 { background-color: green; color:white; } </style> </head> <body> <div class="box1"> My First Box </div> <div class="box2"> All of the people like to eat ice-cream during a hot day. </div> <div class="box3"> Everyone is enjoyed the ice-cream. </div> </body> </html>
Output
Related Link
- HTML - Tables
- HTML - Box Container
- HTML - Columns
- HTML - Navigation
- HTML - Layout