some tags like <h>, <p> takes a whole line, i.e. they have display type of block which means they are gonna take whole width and have a line break. such items can have attributes like height width. some tags like <a>, <img> have display inline properties, i.e. if we add something else, they are gonna stack on same line. such cannot have attributes like height width. those can be changed by display attribute. some basic display attributes are: display: inline, block, inline-block, etc. display: block; drop to a new line where we can have height, text-align, etc. display: inline; brings two items to a same line inlined, margin affects left and right sides only inline-block: respects top and bottom padding as well