<p> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:p

Introduction

p element is used to create Paragraphs. The p element represents a paragraph.

The p Element

ItemValue
Element p
Local AttributesNone
Tag Style Start and end tag required
New in HTML5No
Changes in HTML5 The align attribute is obsolete in HTML5

Style Convention

p {
   display: block;
   margin-before: 1em;
   margin-after: 1em;
   margin-start: 0;
   margin-end: 0;
}

The following code shows the application of the p element to the example content.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body> 
      <p>I like CSS and HTML. </p>  
   </body><!--from w ww .  ja  v a2 s  .  c  om-->
</html>

Related Tutorials