To generate the space around HTML elements we used “margin” and “padding”. By using margin property we can set the size of the white space from the outside of the element while using padding we can set it from inside of the element. We can set it from any direction we want i.e top, right, bottom and left.
They both can be applied by using length values i.e cm, px, em, %.
CSS (Cascading Style Sheet) describe the presentation of Web pages, including layout, color, fonts, positions, backgrounds and other areas of designs. By using It Web page’s presentation can be managed for different devices such as large screen like Dashboard and laptops, small devices like mobile and tablet or printers. CSS can be used with any markup language i.e HTML and XML.