Introduction
In this lab, participants will explore the fundamentals of applying margin styles in CSS through a hands-on approach. The lab guides learners through creating an HTML document, understanding margin property syntax, and experimenting with various margin techniques. By working step-by-step, students will learn how to manipulate spacing around HTML elements using inline styles and CSS margin properties.
The lab begins with establishing a basic HTML5 document structure, introducing three <div>
elements that will serve as the canvas for margin style demonstrations. Participants will progressively add inline styles, explore different margin value syntaxes, and apply individual margin properties to gain practical experience in controlling element spacing and layout design.