3. Containers #
Created Tuesday 01 September 2020
There are two “container” tags in HTML. These tags are used to group together elements/containers.
<div></div>
- block level container, automatic newline and endline.<span></span>
- inline level container(stacks horizontally, i.e. inline)
- According to the box model, both div and span change width w.r.t the content.
- These should be used to group together related stuff, for good relatability and DX.