Example - Paragraph and Break

Previous page...

The document content goes here
To start a new line a break ' br ' tag is required
This tag is different in that there is no closing tag.
In fact the use of the closing tag is forbidden.

To start a new paragraph a ' p ' tag is required.
The paragraph tag also does not require a closing tag.

Although it may be used and is optional.

The tag should never be empty i.e. with no content between it and the next ' p ' tag!

Even though in the above code there were sixteen opening ' p ' tags and three closing the browser ignored them, as there was only 'White Space' between.

The HTML

<html>
<head>
	<title>Paragraph and Break</title>
</head>

<body>

The document content goes here<br>
		
To start a new line a break ' br ' tag is required<br>
		
This tag is different in that there is no closing tag.<br>
		
In fact the use of the closing tag is forbidden. 
		
<p>To start a new paragraph a ' p ' tag is required.<br>
		
The paragraph tag also does not require a closing tag.
		
<p>Although it may be used and is optional.</p>
		
<p> <p>
		
		
<p> <p> <p> <p>
		 
<p></p>    <p> <p> <p></p> <p> <p> <p> <p></p> <p> <p>
		
The tag should never be empty i.e. with no content between it and
the next ' p ' tag!
		
<p>Even though in the above code there were sixteen opening
' p ' tags and three closing the browser ignored them, as there was
only 'White Space' between.

</body>
</html>
		

Back to Top of Page

© 2003 Ashley Preston 

Computeach International Ltd