Tabeli cha HTML <p>

Makadaro na matumizi

<p> Tegemea kifungu hiki kuzingatia mawili ya mawingu.

Mfuzi wa kifungu haitaki kwa kufikia kila mawili ya mawingu. <p> Wengineza kwa kuzingatia kipengele cha kwanza na cha kisha.

Tahadhari:Tumia CSS Kufanya mawili ya mawingu ya matukio

Tazama pia:

Mwongozo wa kampuni ya HTML:HTML Uamuzi

Mwongozo wa Kampuni ya HTML DOM:Kampuni ya Mawili ya Mawingu

Mfano

Mfano 1

Kutaja mawili ya mawingu kama hii:

<p>Hii ni matukio ya kiume ya mawingu.</p>

Jifunze tena

Mfano 2

Kufanya mawili ya mawingu ya matukio kwenye mawili ya mawingu (kwa CSS):

<p style="text-align:right">Hii ni matukio ya kiume ya mawili ya mawingu.</p>

Jifunze tena

Mfano 3

Kufaa CSS kwa mawili ya mawingu ya matukio:

<html>
<head>
<style>
p {
  color: navy;
  text-indent: 30px;
  text-transform: uppercase;
}
</style>
</head>
<body>
<p>China, officially the People's Republic of China (PRC),is a country in East Asia. It is the world's second-most-populous country, with a population exceeding 1.4 billion. China spans the equivalent of five time zones and borders fourteen countries by land.With an area of nearly 9.6 million square kilometers (3,700,000 sq mi), it is the third-largest country by total land area. The country is divided into 22 provinces,five autonomous regions, four municipalities, and two semi-autonomous special administrative regions. Beijing is the national capital, while Shanghai is the most populous city and largest financial center.</p>


Jifunze tena

例子 4

更多段落:

<p>
在源代码中,
这一段
包含很多行,
但浏览器
忽略它。

Jifunze tena

例子 5

HTML 中的诗歌问题:

<p>
  朝辞白帝彩云间,
  千里江陵一日还。
  两岸猿声啼不住,
  轻舟已过万重山。

Jifunze tena

全局属性

<p> 标签还支持 HTML 中的全局属性

事件属性

<p> 标签还支持 HTML 中的事件属性

默认的 CSS 设置

大多数浏览器将使用以下默认值显示 <p> Eneo:

p {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
}

Jifunze tena

Msaada wa kina

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Msaada Msaada Msaada Msaada Msaada