.

Friday, April 2, 2010

Paragraphs

In HTML, paragraphs are delimited by the paragraph tag, <p>. The paragraph tag
controls the line spacing of the lines within the paragraph as well as the line spacing
between paragraphs. The default spacing is single space within the paragraph, and
double-space between paragraphs.
Each paragraph in your document should start with an opening paragraph tag (<p>)
and end with a closing paragraph tag (</p>). This ensures that each paragraph in
the document has the same formatting.
consider the following code and its output, shown in Figure.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Excerpt From Black Beauty</title>
</head>
<body>
<p>01 My Early Home</p>
<p>The first place that I can well remember was a large
pleasant meadow witha pond of clear water in it. Some shady
trees leaned over it, and rushes and water-lilies grew at the
deep end. Over the hedge on one side we looked into a plowed
field, and on the other we looked over a gate at our master's
house, which stood by the roadside; at the top of the meadow
was a grove of fir trees, and at the bottom a running brook
overhung by a steep bank.</p>
<p>While I was young I lived upon my mother's milk, as I
could not eat grass. In the daytime I ran by her side, and at
night I lay down close by her. When it was hot we used to
stand by the pond in the shade of the trees, and when it was
cold we had a nice warm shed near the grove.</p>
<p>As soon as I was old enoughto eat grass my mother used to
go out to work in the daytime, and come back in the
evening.</p>
<p>There were six young colts in the meadow besides me; they
were older than I was; some were nearly as large as grown-up
horses. I used to run with them, and had great fun; we used
to gallop all together round and round the field as hard as
we could go. Sometimes we had rather rough play, for they
would frequently bite and kick as well as gallop.</p>
</body>
</html>

Currently have 0 comments:


Leave a Reply