This repository has been archived by the owner on Jan 25, 2019. It is now read-only.
/
p.html
153 lines (147 loc) · 6.82 KB
/
p.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!doctype html>
<html id="p">
<head>
<meta charset=utf-8>
<link rel="stylesheet" href="http://www.w3.org/StyleSheets/TR/W3C-WD" type="text/css">
<title> p – paragraph - HTML5</title>
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="prev" href="output.html" title="output">
<link rel="next" href="param.html" title="param">
<link rel="section" href="Overview.html">
<link rel="contents" href="Overview.html#toc">
<link rel="index" href="index-of-terms.html">
</head>
<body class="chunk" onload="initDfn()">
<div id="jump-indexes" class="no-number no-toc"><div id="jumpIndexA-button" role="button" aria-haspopup="true" tabindex="0">jump</div></div>
<h2 class="chunkpagetitle"><a href="Overview.html#toc">HTML: The Markup Language (an HTML language reference)</a></h2>
<div class="nav">
<span class="nav-prev"><a href="output.html">« output</a></span>
<span class="nav-next"><a href="param.html">param »</a></span>
</div>
<div class="no-number elementpage section">
<h2 class="element-head">
<span class="spec-link"><a title="Read about the p element in the HTML5 spec" href="http://dev.w3.org/html5/spec/the-p-element.html#the-p-element">ⓘ</a></span> <span class="element">p</span> – <span class="shortdesc">paragraph</span> <a class="hash" href="#p">#</a> <a class="toc-bak" href="Overview.html#p-toc">T</a>
</h2>
<div id="p-longdesc" class="longdesc">
<p>The
<span class="element">p</span>
element represents a
paragraph.</p>
</div>
<div class="no-number no-toc" id="p-content-model">
<h2 class="element-subhead">Permitted contents <a class="hash" href="#p-content-model">#</a>
</h2>
<div class="content-models">
<div id="p-mdls">
<p class="elem-mdl">
<span><a href="terminology.html#phrasing-content" id="phrasing-content_xref38">phrasing content</a></span>
</p>
</div>
</div>
</div>
<div class="no-number no-toc" id="p-attributes">
<h2 class="element-subhead">Permitted attributes <a class="hash" href="#p-attributes">#</a>
</h2>
<dl class="attr-defs">
<dt>
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/global-attributes.html#global-attributes">ⓘ</a>
<a class="attribute-name" title="global-attributes" href="global-attributes.html">global attributes</a>
</dt>
<dd>Any attributes permitted globally.</dd>
</dl>
</div>
<div class="no-number no-toc" id="p-constraints">
<h2 class="element-subhead">Additional constraints and admonitions <a class="hash" href="#p-constraints">#</a>
</h2>
<ul class="assertions">
<li><span>
The <span class="attribute">align</span> attribute on the <span class="element">p</span> element is obsolete.
<a href="http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes">Use CSS instead</a>.
</span></li>
</ul>
</div>
<div class="no-number no-toc tag-omission" id="p-tags">
<h2 class="element-subhead">Tag omission <a class="hash" href="#p-tags">#</a>
</h2>
<p>A
<span class="element">p</span>
element must have a <span title="syntax-start-tag">start tag</span>.</p>
<p>A
<span class="element">p</span>
element’s
<span title="syntax-end-tag">end tag</span>
may be omitted if the
<span class="element">p</span>
element is immediately followed by an
<a href="address.html#address" class="element">address</a>,
<a href="article.html#article" class="element">article</a>,
<a href="aside.html#aside" class="element">aside</a>,
<a href="blockquote.html#blockquote" class="element">blockquote</a>,
<span class="element">dir</span>,
<a href="div.html#div" class="element">div</a>,
<a href="dl.html#dl" class="element">dl</a>,
<a href="fieldset.html#fieldset" class="element">fieldset</a>,
<a href="footer.html#footer" class="element">footer</a>,
<a href="form.html#form" class="element">form</a>,
<a href="h1.html#h1" class="element">h1</a>,
<a href="h2.html#h2" class="element">h2</a>,
<a href="h3.html#h3" class="element">h3</a>,
<a href="h4.html#h4" class="element">h4</a>,
<a href="h5.html#h5" class="element">h5</a>,
<a href="h6.html#h6" class="element">h6</a>,
<a href="header.html#header" class="element">header</a>,
<a href="hr.html#hr" class="element">hr</a>,
<a href="menu.html#menu" class="element">menu</a>,
<a href="nav.html#nav" class="element">nav</a>,
<a href="ol.html#ol" class="element">ol</a>,
<span class="element">p</span>,
<a href="pre.html#pre" class="element">pre</a>,
<a href="section.html#section" class="element">section</a>,
<a href="table.html#table" class="element">table</a>,
or
<a href="ul.html#ul" class="element">ul</a>
element, or if there is no more content in the parent
element and the parent element is not an
<a href="a.html#a" class="element">a</a> element.</p>
</div>
<div class="no-number no-toc" id="p-context">
<h2 class="element-subhead">Permitted parent elements <a class="hash" href="#p-context">#</a>
</h2>
<p class="permitted-parents"><span class="context-mdl"><span>any element that can contain
<a href="common-models.html#common.elem.flow">flow elements</a></span></span></p>
</div>
<div class="no-number no-toc interface" id="p-interface">
<h2 class="element-subhead">DOM interface <a class="hash" href="#p-interface">#</a>
</h2>
<pre class="idl">interface <b>HTMLParagraphElement</b> : <a href="http://dev.w3.org/html5/spec/elements.html#htmlelement" title="">HTMLElement</a> {};</pre>
</div>
<div class="no-number no-toc display" id="p-display">
<h2 class="element-subhead">Typical default display properties <a class="hash" href="#p-display">#</a>
</h2>
<div class="css-props" id="p-css">
<div class="selectors">
<span class="selector">p</span> {
</div>
<div class="properties">
<div class="css-property">
<span class="prop-name">display</span>: <span class="prop-value">block</span>;</div>
<div class="css-property">
<span class="prop-name">margin-before</span>: <span class="prop-value">1em</span>;</div>
<div class="css-property">
<span class="prop-name">margin-after</span>: <span class="prop-value">1em</span>;</div>
<div class="css-property">
<span class="prop-name">margin-start</span>: <span class="prop-value">0</span>;</div>
<div class="css-property">
<span class="prop-name">margin-end</span>: <span class="prop-value">0</span>; }</div>
</div>
</div>
</div>
</div>
<hr class="footerbreak">
<div class="nav">
<span class="nav-prev"><a href="output.html">« output</a></span>
<span class="nav-next"><a href="param.html">param »</a></span>
</div>
<script src="js/jump-indexes.js" type="text/javascript"></script><script src="js/dfn.js" type="text/javascript"></script>
</body>
</html>