官术网_书友最值得收藏!

<p>, the "uebertag"

Finally, there is the <p>, the tag of all tags. When you run into a problem trying to fit things on the page where you want them, you will most likely solve it by inserting a number of <p> elements. Think of a <p> as a rectangular section of your page. You can even organize your page as a grid. The framework we will be using in the second half of the book is exactly that. It uses a 12-column grid.

Look at this very simple, yet not uncommon example:

<body>
<p id="header"></p>
<p id="container">
<p id="left"></p><p id="middle"></p><p id="right"></p>
</p>
<p id="footer"></p>
</body>

Just make this the body of a new HTML page, minigrid.html, and look at it. You will see ... nothing, because none of the <p> elements have any content, in which case they do not have any size. <p> elements are so-called block elements. We will cover this in great detail in the next chapter. Before we do that, we are going to conclude this chapter on HTML with a very important topic: HTML entities.

主站蜘蛛池模板: 镇平县| 绿春县| 元朗区| 霍州市| 周宁县| 和龙市| 格尔木市| 沐川县| 房产| 微山县| 库伦旗| 微博| 布拖县| 土默特左旗| 华池县| 来宾市| 固镇县| 黑水县| 方城县| 郁南县| 伊宁市| 常山县| 禹城市| 平湖市| 宜宾市| 余姚市| 德阳市| 盐边县| 本溪| 常山县| 敦化市| 平武县| 大足县| 伊通| 山阳县| 寻甸| 会宁县| 友谊县| 达日县| 天等县| 澄江县|