Although browsers do not recognize the tabulation, a space more than once, and making a line with enter, but by using tags <pre> then the browser will display the text as it is, that space is considered a space, tabulation considered tabulation and enter regarded enter. Even his font appeared in the original. This is an example:
<HTML>
<BODY>
<PRE>
<B>Song Lyrics </B>
I have a dream, a song to sing
To help me cope with anything If you see the wonder of a fairy tale You can take the future even if you fail
</PRE>
</BODY>
</HTML>
Save the file above as an HTML file and then display in the browser, then it will be like this:
Song Lyrics
I have a dream, a song to sing
To help me cope with anything
If you see the wonder of a fairy tale
You can take the future even if you fail
<pre> tag is necessary if we want to display in ASCII character set of web pages in a specific arrangement, such as the following example:
Car Pick-up
.------.
:|||"""`.`.
:||| 7.`.
.===+===+===+===+===||`----L7'-`7`---.._
[] || == | """-.
[]...._____.........||........../ _____ ____|
\____/,---.\_ ||_________/ /,---.\_ _/
/_,-/ ,-. \ `._____|__________||/ ,-. \ \_[
/\ `-' / /\ `-' /
`---' `---'
The picture above is ASCII art. There are other examples of ASCII art Here.

0 komentar:
Post a Comment