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

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

主站蜘蛛池模板: 柳州市| 永修县| 股票| 义马市| 石柱| 灯塔市| 星子县| 潼关县| 务川| 固镇县| 陆良县| 万载县| 怀化市| 容城县| 新竹市| 阿拉善盟| 宝清县| 四子王旗| 沁源县| 体育| 通山县| 四子王旗| 文化| 和政县| 慈利县| 兰考县| 阿坝| 万安县| 珲春市| 五原县| 腾冲县| 兴国县| 吉木萨尔县| 东乡| 宝丰县| 道孚县| 遂平县| 夏河县| 临城县| 常宁市| 繁峙县|