Hi Teacher, the attached file is my homework of chapter 2.
here comes a
question: Why in the following code the height of the div is bigger than
height of the img ? There is a gap below the image, but it doesn’t seems
padding/margin. What is the gap or extra space below image?
Hi David, by default, an image is rendered inline, like a
so it sits on the same line that a, b, c and d sit on. There is space
that line for the descenders you find on letters like g, j, p and q.