HTML CSS examples for HTML Tag:p
p element is used to create Paragraphs. The p element represents a paragraph.
The p Element
Item | Value |
---|---|
Element | p |
Local Attributes | None |
Tag Style | Start and end tag required |
New in HTML5 | No |
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.
<!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>