Results 1 to 2 of 2

Thread: Study a web page using HTML

  1. #1
    Join Date
    Apr 2008
    Posts
    438

    Study a web page using HTML

    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>

  2. #2
    Join Date
    Apr 2008
    Posts
    438

    Re: Study a web page using HTML

    Code:
    <script language="javascript"> 
       <! -- 
        function Example () ( 
          document.write ( "Sample Code"); 
          alert ( "Sample Code"); 
        ) 
       -> 
      </ script>

Similar Threads

  1. What are aesthetic needs of web-page study?
    By Chakradev in forum Technology & Internet
    Replies: 4
    Last Post: 07-03-2010, 05:15 AM
  2. Php output as html page
    By Ebenezer in forum Software Development
    Replies: 3
    Last Post: 04-08-2009, 03:38 PM
  3. How to jump down in a Html page
    By Ron1 in forum Software Development
    Replies: 2
    Last Post: 13-06-2009, 06:14 PM
  4. How to embed a WMV into an html page
    By Ameyaa in forum Software Development
    Replies: 2
    Last Post: 19-05-2009, 10:37 AM
  5. VB6.0 link html page
    By Taipai in forum Software Development
    Replies: 3
    Last Post: 26-01-2009, 06:34 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,886,510.62543 seconds with 16 queries