> HTML formatting ~ Online tutorial

HTML formatting

Formatting the text
Following are some commonly used tags to format the text
TagMeaning
<p>This tag is should be put at the every paragraph
<br>This is tag causes the single line breaks.Generally it is kept at
the end of every line
<pre>This tag is used to perserve the white spaces and lines the text
<div>This is tag used to make division the sections in the HTML document
Example
<html>
<head>
<title>
The HTML formatting
</title>
</head>
<body>
<p>
once upon a time there was king who kept a monkey as a pet.
The monkey served the king.
</p>
<div>
The woman took the wood and thanked him for his kindness, but when the last stick was burned, the monkey cried out at forest.
</div>
<pre>
Every time the newest monkey takes to the stairs,
 he is attacked.
 Most of the monkeys that are beating him have no idea          why they were not permitted to climb the stairs or why they are participating in the beating of the newest monkey.
</pre>
</body>
</html>



Output


once upon a time there was king who kept a monkey as a pet.
The monkey served the king.

The woman took the wood and thanked him for his kindness, but when the last stick was burned, the monkey cried out at forest.
Every time the newest monkey takes to the stairs,
he is attacked.
Most of the monkeys that are beating him have no idea          why they were not permitted to climb the stairs or why they are participating in the beating of the newest monkey.

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: