I am studying HTML now on my own and came across the coolest tag
<pre>
Now what does this do? I'll show you
If you typed this out
<body>
///\\___
(@ @)
+----oOO----(_)-----------+
| BARRY GOLDWATER |
| for |
| President |
+-----------------oOO-----+
|__|__|
|| ||
ooO Ooo
</body>
it will look like this in browser
///\\___ (@ @) +----oOO----(_)-----------+ | BARRY GOLDWATER | | for | | President | +-----------------oOO-----+ |__|__| || || ooO Ooo
but placing this powerful tag <pre> and closing </pre>
you get exactly what you typed in editor
<pre>
///\\___
(@ @)
+----oOO----(_)-----------+
| BARRY GOLDWATER |
| for |
| President |
+-----------------oOO-----+
|__|__|
|| ||
ooO Ooo
</pre>
Pretty neat!
cool web coding tips
Started by
Sahak
, Oct 03 2008 05:50 PM
5 replies to this topic
#1
Posted 03 October 2008 - 05:50 PM
#2
Posted 03 October 2008 - 06:08 PM
If you want to check your code place it here
http://validator.w3.org/
and it will check for errors before you publish your pages.
http://validator.w3.org/
and it will check for errors before you publish your pages.
#3
Posted 03 October 2008 - 08:15 PM
Funny you should put this up as I can definitely use it right now. I was messing with <TT> and automatically adding  's and other crap but this should do just fine
#5
Posted 04 October 2008 - 11:54 PM
Funny you should put this up as I can definitely use it right now. I was messing with <TT> and automatically adding  's and other crap but this should do just fine
Sip You may already know this but just in case there is a free wonderful program called Notepad light
You can format anything just like a word program and go to modify and convert to HTML! It does a beautiful clean html in total so what you typed comes out exactly with valid code!
Check it out!
#6
Posted 05 October 2008 - 12:30 AM
Cool ... I use UltraEdit and UEStudio for most my editing in windows. In linux, I usually use vim. This thing I was doing the other day was writing a program that would parse a large number of c++ source code files and automatically generate html documentation of a certain type of class I was interested in. As part of that, I was copying program comments directly into the HTML catalog so that's where this <pre> tag came pretty handy to preserve all the spacing.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users