br tag
pre tag
TAG: p
<p /> ... </p>
The
<p />
tag is used to signify the beginning of a paragraph and is analogous to having both a line break and a carriage return occur. The flow of the display of the text and any images is halted on the current line, an entire line is skipped (or a certain amount of white vertical space), and then the flow resumes starting at the left margin (by default).
The closing tag is mandatory.
Attributes and Events
class
dir
id
lang
onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
style
title
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="eng">
<head>
<title>DevGuru XHTML p Tag Example</title>
</head>
<body>
My favorite fish!
<
p /
>
The pseudotrophus "Acei" cichlid came from Lake Malawi in Africa...
<
p /
>
...while the Showa Koi in my pond came from Japan.
</body>
</html>
Output:
My favorite fish!
The pseudotropheus "Acei" cichlid came from Lake Malawi in Africa...
...while the Showa Koi in my pond came from Japan.
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information