Jump to content

<pre> tag

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Guest_NeedHelp_*

Guest_NeedHelp_*
  • Guests
I read about the <pre> tag in my HTML book but I don't understand it. What is it used for and why would I use it?

#2
xtraze

xtraze

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 910 posts

NeedHelp said:

I read about the <pre> tag in my HTML book but I don't understand it. What is it used for and why would I use it?
I think it is for pre-formatted text and this appears a bit different and theres one more thing about these. I'll tell it by Examples,

If you type - ( _ = spaces )
hhfe_rwhn_______efnwu
______jnujnu______ununu_m_nunuu
in html the result will be
hhfe rwhn efnw jnujnu ununu m nunuu

But if you put it within <pre> tag
the result will appear the way you typed it.


Give me a Rep if this is useful, lol.

#3
xXHalfSliceXx

xXHalfSliceXx

    Speaks fluent binary

  • Moderators
  • 1,694 posts
HTML element - Wikipedia, the free encyclopedia

Posted Image
Posted Image