Lab4 Questions

Q: What is the CSS box model?

A: Every element in html has a box aroung the element that can be edited. These elements are as follows:


Q: What is the difference between margin and padding?

A: Margin is on the outside of the border, and padding is between content and the border.

Q: How is an HTML element height and width determined?

A: It is determined by the outline of the box.

Q: Explain this CSS property: padding:25px 50px;

A: The top and bottom borders are the first value of 25 pixels, and the left and right are the second value of 50 pixels.

Q: What is the difference between a border and an outline?

A: The border is between the padding and the margin, and the outline is outside of the whole box.