♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥ ◀HTML Tags▶ ●Output Tags● These tags are often used to display computer/programming code. You might be surprised for "how to display the text containing the spaces, line breaks, programming codes, sample text, define variable" . Do not worry, because in this chapter we are going to show you how easily you can do easily. So lets start with these tags: Tag Description
Defines preformatted text
Defines computer code text
Defines teletype text
Defines keyboard text
Defines a variable
Defines a definition term
Defines the direction of text display
Defines sample computer code
.........
Tag
This is preformatted text. It preserves both spaces and line breaks. The pre tag is good for displaying computer code.
Format:
.....text.....
Example:
for i = 1 to 10
print i
next i
Output:
for i = 1 to 10
print i
next i
.....text ...... Tag
This tag is also used to display the
computer code . But better you use tag.
Format:
.....text.....
.....Keyboard Input...... Tag
This tag displays the Keyboard Input .
Format:
........ Keyboard Input......
......text.... Tag
This tag displays the typewriter text.
Format:
.....text.....
....sample text... Tag
This tag displays the sample text.
Format:
.....sample text.....
computer variable
This tag defines the computer variable .
Format:
computer variable
definition term
this tag is used for definition term.
Examples of output tags
Examples Outputs
It preserve all spaces
It preserve all spaces
Computer code Computer code
Keyboard input Keyboard input
Teletype text Teletype text
Sample text Sample text
Computer variable Computer variable
Definition term Definition term
Now you have learned the Output Tags so lets do some practical. Below there is a file type the same code on notepad (any text editor ) and save it. now open this file in the internet browser .
Example:
Computer code
Keyboard input
Teletype text
Sample text
Computer variable
Note:
These tags are often used to display computer/programming code.
Page in browser will Look Like:→
♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥