As a quick reminder of what we discussed in Chapter 1, recall that a website is essentially a collection of HTML elements. These elements are added to the page similar to how you read a regular piece of English text, but with an important distinction: HTML elements follow different display behaviors. Some elements, like <span> or <a>, are inline elements that flow within the text and only occupy as much width as necessary for their content. Others, like <div>, <p>, or <h1>, are block elements that create distinct "blocks" on the page, automatically starting on a new line and stretching to fill the full width of their parent container – the parent container being either the element itself, or any nested element like a wrapping <div> for example.</div></h1></p></div></a></span>

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Containers and Rows in Bootstrap 5.3

  • Ajdin Imsirovic

摘要

As a quick reminder of what we discussed in Chapter 1, recall that a website is essentially a collection of HTML elements. These elements are added to the page similar to how you read a regular piece of English text, but with an important distinction: HTML elements follow different display behaviors. Some elements, like or , are inline elements that flow within the text and only occupy as much width as necessary for their content. Others, like
,

, or

, are block elements that create distinct "blocks" on the page, automatically starting on a new line and stretching to fill the full width of their parent container – the parent container being either the element itself, or any nested element like a wrapping
for example.