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

<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.

主站蜘蛛池模板: 大庆市| 介休市| 巍山| 平罗县| 岳阳县| 措勤县| 泌阳县| 海伦市| 深泽县| 莱州市| 长葛市| 潜江市| 萍乡市| 龙门县| 乾安县| 平潭县| 马公市| 衡阳县| 长宁区| 阜新市| 巴林左旗| 深州市| 乾安县| 北碚区| 渭南市| 隆尧县| 花莲县| 遂平县| 凉城县| 农安县| 湖口县| 北碚区| 广昌县| 茶陵县| 马鞍山市| 区。| 广德县| 郯城县| 巴林右旗| 庐江县| 工布江达县|