Do all HTML boxes automatically get set to the width of their containing boxes?


#1

Question

Do all HTML boxes automatically get set to the width of their containing boxes?

Answer

No. As you will learn in the next lesson, inline elements like <span> or <a> will only span the width of their content, not the entire width of their containing element.