A classic problem facing those who wish to edit source code on a page to publish it as teaching material, is to prevent the browser code as the interpreter and run, rather than print it on screen, ready to be simply read.
HTML tags are enclosed between <and> and then the browser will interpret as code <img src="immagine.jpg"> and attempt to insert an image.
To print the code on the screen and not run it, using a series of special characters formed by symbols, numbers and letters, for example, the character <can print out a video with the combination <, while a> uses the combination> ;.
So, to write <html> have to write <html>.
For a specific code, whether HTML or a scripting language, you use tags <pre> and </ pre>, or "pre text", which requires no special justification of the text to print on the screen in a certain way.
To provide a complete example, exposing the code of a simple Javascript that invention at the moment:
<pre>
<script language="javascript">
<! --
Function Example () (
Document.write ( "Sample Code");
Alert ( "Sample Code");
)
->
</ script>
</ pre>
Bookmarks