Let's create our first box using a the generic "div" tag in HTML, then personalize it with some CSS properties. We'll need to use a class called "box" too!
Use a generic "div" tag to build the basis for our box. Don't forget to use the auto-complete feature in Codpen. Just type "div" and press the tab key. Let's fill the div tag with placeholder text.
Inside the lead HTML tag, let's add the a class called box. This let's codepen know that later we will use CSS to modify the appearance of this section of the page. Use the format: class = "box"
OK, we have a class! Now how do we specify the fun stuff like color? Well we will fill a ".box" class in CSS. Make sure to include { } after the class name. All the styling we want to do must go inside the curly braces. Add an attribute called "background-color" and set it too green to see the whole line of text change color.
Well a colored line of text isn't a box. Let's try to think of two measurements that determine a box. Pause for a second and try to think about it.....
Width and Height that's great! Add them to your CSS like we did the "background-color". We'll start with a Square box of "50px" or 50 pixels.