Saturday 9 July 2011

using br tag and pre tag

1. br tag

it use to create a line break where it adds a blank line the location where the tag is placed. the following text will appear at the beginning of the left margin in the text line. no blank line like used tag p.

example :

<br>
part  1
<br>
part  2
<br>
part 3
</br>

output :


2.  pre tag
it is used for preformatted text where you wanted the text to appear as it is arranged  in the html file  when viewed with the browser.

example
<pre>
<b> my friends list</b>
wilson 20 years old
moly  22 years old
bron  21 years old
</pre>

output :

Just click like button if you like

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...