Friday, 6 February 2015

PARAGRAPHS

 Now that you have a page title and several headings, you can add some ordinary paragraphs to the page.
The first version of HTML specified the <p> tag as a one-sided tag. There was no corresponding </p>. and the <p> tag was used to indicate the end of a paragraph (a paragraph break), not the beginning. So, paragraphs in the first version of HTML looked like the following:
Slowly and deliberately, Enigern approached the mighty dragon. A rustle in the trees of the nearby forest distracted his attention for a brief moment, a near fatal mistake for the brave knight. <p> the dragon lunged at hi, searing Enigern armor with a rapid blast of fiery breath. Erigeron fell to the ground as the dragon hovered over him. He quickly drew his sword and thrust it into the dragon’s chest. <p>
Most early browsers assumed that paragraphs would be formatted this way. When they came across a <p> tag, these older browser started a new line and added some extra white space between the line that just ended and the next one.
As of the HTML 4.02 standard, paragraph tags are two-sided <P/> indicates the beginning of the paragraph. The closing tag is no longer optional , so rather using <p> to indicate where one paragraph ends and another begins, you enclose each paragraph within a <p> to indicate where one paragraph ends and another begins, you enclose each paragraph within <p> tag . so, the erigeron story would look like this.
<p> slowly and deliberately, erigeron approached the might dragon. a rustle in the trees of the nearby forest distracted his attention for a brief moment, a near fatal mistake for the brave knight. </p><p> the dragon lunged at him, searing engineer’s armor with a rapid blast of fiery breath. Engiern fell to the grounds the dragon hovered over him, he quickly drew his sword and thrust it into the dragon’s chest. </P>.
At this point, you should be wrapping you paragraphs inside opening and closing <p> tags. Older browsers accept this usage just fine, and it’s up to speed with the current standards. Although at one time it was optional to use the closing </p>tag, it’s required under the XHTML 1.0 recommendation because all tags must be closed.
 Some people prefer to use extra <p> tags between paragraphs to spread out the text on the page. Again, he’s the cardinal reminder: design for content, not for appearance. This is also an area wirer browsers are inconsistent. Some of them won’t add space foe empty <p> tags at all. Besides, these days controlling white spa e is best done witches figure 4.3 shows what happens when I add another paragraph about enegern and the dragon to the page. The paragraph breaks are added between the closing and opening <p> tags in the text.


No comments:

Post a Comment