How to Use Preformated Tag in HTML



PREFORMATED  TAG IN HTML



While you can see the sizes changed, did you notice something special?
Even though we returned after the word html and before the word page,
there is no line break there.
This is because HTML does not recognize the carriage return.
We can make it see the returns by using the <pre></pre> tags
with 

<pre> the text is taken just as you type it.
This can however become a hassle because you will not be able to change size, color or format the text in any other way between the <pre> tags.
So usually other tags are used.


Try the pretag as it is written below.



<html>

<head>

<title>The title of your page</title>

</head>

<body>

<PRE>




>>>>>>>>>>>>welcome>>>>>>>>>>>>>>>>

>

>> SAME AS >>>>>>>>>>>>>>

>>> >>>>>>>>>>>>>>

>>>>>>

>?>>>>> >>>>>>>>>>>>>>>

>>>>>>

>>>>> >>>>>>>>>>>>>>>




</PRE>

</body>

</html>


you save it on the notepad and refresh your internet explorer,
the page should look like this:

Output: 






>>>>>>>>>>>>welcome>>>>>>>>>>>>>>>>

>

>> SAME AS >>>>>>>>>>>>>>

>>> >>>>>>>>>>>>>>

>>>>>>

>?>>>>> >>>>>>>>>>>>>>>

>>>>>>

>>>>> >>>>>>>>>>>>>>>




Share this

Related Posts

Previous
Next Post »