HTML and CSS [Electronic resources]

Molly E. Holzschlag

نسخه متنی -صفحه : 198/ 26
نمايش فراداده

Adding Paragraphs

Paragraphs are managed using the paragraph element, represented by an opening and closing tag <p>. . .</p>, with text content in between (see Example 2-2).

Example 2-2. Marking up paragraphs with an opening and closing tag
[View full width]

<p>Mentally, too, they were almost moribund. They stared vacantly,
 straight out to sea.

 They stared with the unwinking fixedness of those whose gaze is caught
 in hypnotic trance.</p>
<p>It was Frank Merrill who broke the silence finally.
 Merrill still looked like a man of

 marble and his voice still kept its unnatural tone, level,
 monotonous, metallic.</p>

Figure 2-2 shows how the paragraphs will appear within a web browser. You'll note that all the necessary carriage returns are handled when the browser interprets the paragraph tags.

Figure 2-2. Paragraph formatting in the web browser.