home *** CD-ROM | disk | FTP | other *** search
/ Magazyn WWW 1999 July / www_07_1999.iso / prez / amiga / awebedv1_2.lha / AWebEd / helpdocs / primer < prev    next >
Text File  |  1980-01-07  |  3KB  |  97 lines

  1. Back to MENU
  2.  
  3.                               "HTML" Primer
  4.                               -------------
  5.  
  6. What is HTML?
  7. -------------
  8.  
  9. HTML is a platform independent language specifically designed for
  10. use within the World Wide Web (WWW).  Any machine with an HTML
  11. browser can view documents created with HTML from anywhere on the
  12. internet.
  13.  
  14. HTML document structure
  15. -----------------------
  16.  
  17. An HTML document consists of two parts.  The "header" contains
  18. general information about the document.  The "body" contains the
  19. code that determines the actual appearance of the document.
  20.  
  21. Hence - structure of an HTML document:
  22.  
  23. START OF HTML DOCUMENT
  24.    START OF HEADER
  25.       General info about document
  26.    END OF HEADER
  27.    START OF BODY
  28.       Description of document
  29.    END OF BODY
  30. END OF HTML DOCUMENT
  31.  
  32. The start and end of an HTML document is delimited respectively by
  33. the
  34. codes <HTML> and </HTML>
  35.  
  36. The Header
  37. ----------
  38.  
  39. The header contains general information about the document.  For
  40. most uses, only the title of the document is defined here.
  41.  
  42. The start and end of the header is delimited by the codes <HEADER>
  43. and </HEADER> respectively.
  44.  
  45. The start and end of the title is delimited by the codes <TITLE> and
  46. </TITLE> respectively.  The title contains the text which is placed
  47. typically in the WWW browser window.
  48.  
  49. Hence, a typical header would be:
  50.  
  51. <HTML>       - Denotes start of HTML document
  52. <HEADER>     - Denotes start of header
  53. <TITLE>      - Denotes start of title
  54. My Web Page  - Denotes title text
  55. </TITLE>     - Denotes end of title text
  56. </HEADER>    - Denotes end of header
  57. ...
  58. </HTML>      - Denotes end of HTML document
  59.  
  60. The Body
  61. --------
  62.  
  63. The Body contains the bulk of the code.  This is the code which
  64. describes the actual appearance of the document.
  65.  
  66. The body is delimited by the codes <BODY> and </BODY>.
  67.  
  68. Hence, a typical body would be:
  69.  
  70. ....
  71. <BODY>      - Denotes start of body
  72. <H1> Welcome to my web page </H1>
  73. <HR>
  74. <P> Here is a link to <A HREF="http://www.lycos.com"> Lycos </A>
  75. </P>
  76. </BODY>     - Denotes end of body
  77.  
  78. The important bits
  79. ------------------
  80.  
  81. 1 - To produce an effect over a large area of the document the HTML
  82. codes generally come in pairs - one code to start the effect, and
  83. one code to terminate the effect; for example <B> and </B> to
  84. respectively start and terminate a string of bold text.  The
  85. terminating code always has a forward slash "/" before the
  86. letter(s).
  87. 2 - To produce an isolated effect, generally only one code is
  88. required; for example <HR> to insert a horizontal rule into the
  89. document.
  90. 2 - Under HTML-2, the formatting of the document is essentially the
  91. task of the browser.  The HTML code tells the browser only in what
  92. order to do things.  The browser will either ignore or make a hash
  93. of any attempts to apply a rigid formatting to the document.  For
  94. example, linefeeds (strokes of the return key) are ingored; the
  95. browser will automatically format the text so that it all appears
  96. within the browser window.
  97. 3 - HTML is easy.  Go through the TUTORIAL if you wish.