If you have been using HTML, you would have definitely come across tags like <div>,<span>,<p>,<a> and many more. But, did you take the time to understand how the content is being displayed in these elements? Or did you notice the different ways that these elements treat properties like padding, margin, width, and height. In this article, we will dive deeper into these aspects of elements.
Let’s start with understanding what is display property? As the name suggests,
display property controls the display behavior of an element. Every element has its own default value for display according to its nature.