p

< html‎ | elements
Jump to: navigation, search
(Talk)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 +
{{Page_Title}}
 
{{Flags
 
{{Flags
|High-level issues=Needs Topics, Missing Relevant Sections, Data Not Semantic, Unreviewed Import
+
|High-level issues=Missing Relevant Sections, Needs Topics, Data Not Semantic, Unreviewed Import
|Content=Incomplete, Not Neutral, Compatibility Incomplete, Examples Best Practices, Cleanup
+
|Content=Incomplete, Not Neutral, Cleanup, Compatibility Incomplete, Examples Best Practices
 
}}
 
}}
{{Standardization_Status|}}
+
{{Standardization_Status}}
 
{{API_Name}}
 
{{API_Name}}
 +
{{Summary_Section|Paragraph element (&lt;p&gt;) represents a paragraph.}}
 
{{Markup_Element
 
{{Markup_Element
 
|DOM_interface=dom/HTMLParagraphElement
 
|DOM_interface=dom/HTMLParagraphElement
 
}}
 
}}
{{Topics|HTML}}
 
 
{{Examples_Section
 
{{Examples_Section
 
|Not_required=No
 
|Not_required=No
|Examples={{Single_Example
+
|Examples={{Single Example
 +
|Language=HTML
 
|Description=This example uses the '''P''' element to create a paragraph.
 
|Description=This example uses the '''P''' element to create a paragraph.
|LiveURL=
+
|Code=&lt;p&gt;This is a paragraph.&lt;/p&gt;
|Code=
+
}}
&lt;p&gt;This is a paragraph.&lt;/p&gt;
+
}}
}}}}
+
 
{{Notes_Section
 
{{Notes_Section
|Notes=
+
|Notes====Remarks===
===Remarks===
+
The P element represents a paragraph. It cannot contain block-level elements (including P itself).
 +
 
 
Windows Internet Explorer 8. In IE8 Standards mode, the '''P''' element is automatically closed when a [[html/elements/table|'''TABLE''']] element is encountered. For example, <code>&lt;p&gt;&lt;table&gt;..&lt;/table&gt;&lt;/p&gt;</code> is now parsed as <code>&lt;p&gt;..&lt;/p&gt;&lt;table&gt;..&lt;/table&gt;</code>. For more information, see HTML Enhancements in Internet Explorer 8 and Defining Document Compatibility.
 
Windows Internet Explorer 8. In IE8 Standards mode, the '''P''' element is automatically closed when a [[html/elements/table|'''TABLE''']] element is encountered. For example, <code>&lt;p&gt;&lt;table&gt;..&lt;/table&gt;&lt;/p&gt;</code> is now parsed as <code>&lt;p&gt;..&lt;/p&gt;&lt;table&gt;..&lt;/table&gt;</code>. For more information, see HTML Enhancements in Internet Explorer 8 and Defining Document Compatibility.
|Import_Notes=
+
|Import_Notes====Standards information===
===Standards information===
+
 
*[http://go.microsoft.com/fwlink/p/?linkid{{=}}196991 Document Object Model (DOM) Level 2 HTML Specification], Section 1.6.5
 
*[http://go.microsoft.com/fwlink/p/?linkid{{=}}196991 Document Object Model (DOM) Level 2 HTML Specification], Section 1.6.5
 
*[http://go.microsoft.com/fwlink/p/?linkid{{=}}25320 HTML 4.01 Specification], Section 9.3.1
 
*[http://go.microsoft.com/fwlink/p/?linkid{{=}}25320 HTML 4.01 Specification], Section 9.3.1
Line 764: Line 765:
 
|}
 
|}
 
 
 
 
 
 
}}
 
}}
{{See_Also_Section
+
{{Related_Specifications_Section
|Topic_clusters=html
+
|Specifications=
 
}}
 
}}
 +
{{Compatibility_Section
 +
|Not_required=No
 +
|Desktop_rows=
 +
|Mobile_rows=
 +
|Notes_rows=
 +
}}
 +
{{See_Also_Section}}
 +
{{Topics|HTML}}
 
{{External_Attribution
 
{{External_Attribution
 
|Is_CC-BY-SA=No
 
|Is_CC-BY-SA=No
 
|Sources=MSDN
 
|Sources=MSDN
|MSDN_link=[http://msdn.microsoft.com/en-us/library/ie/hh828809%28v=vs.85%29.aspx Windows Internet Explorer API reference]
 
 
|MDN_link=
 
|MDN_link=
 +
|MSDN_link=[http://msdn.microsoft.com/en-us/library/ie/hh828809%28v=vs.85%29.aspx Windows Internet Explorer API reference]
 
|HTML5Rocks_link=
 
|HTML5Rocks_link=
 
}}
 
}}

Revision as of 21:17, 10 October 2012

p



Summary

Paragraph element (<p>) represents a paragraph.


Overview Table

DOM Interface HTMLParagraphElement

Examples

This example uses the P element to create a paragraph.

HTML

<p>This is a paragraph.</p>

Notes

Remarks

The P element represents a paragraph. It cannot contain block-level elements (including P itself).

Windows Internet Explorer 8. In IE8 Standards mode, the P element is automatically closed when a TABLE element is encountered. For example, <p><table>..</table></p> is now parsed as <p>..</p><table>..</table>. For more information, see HTML Enhancements in Internet Explorer 8 and Defining Document Compatibility.

Standards information


HTML information

{

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]