- Practical Web Development
- Paul Wellens
- 164字
- 2021-07-16 13:14:08
<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.
- C及C++程序設(shè)計(jì)(第4版)
- iOS Game Programming Cookbook
- MySQL數(shù)據(jù)庫管理實(shí)戰(zhàn)
- Microsoft Exchange Server PowerShell Cookbook(Third Edition)
- Python Deep Learning
- Python進(jìn)階編程:編寫更高效、優(yōu)雅的Python代碼
- 深入理解Java7:核心技術(shù)與最佳實(shí)踐
- Python程序設(shè)計(jì)案例教程
- 零基礎(chǔ)學(xué)Python數(shù)據(jù)分析(升級(jí)版)
- C#程序設(shè)計(jì)
- 深入理解Elasticsearch(原書第3版)
- Spring Boot+Vue全棧開發(fā)實(shí)戰(zhàn)
- OpenStack Networking Essentials
- 創(chuàng)意UI:Photoshop玩轉(zhuǎn)APP設(shè)計(jì)
- Oracle實(shí)用教程