{"id":102,"date":"2011-11-15T21:48:09","date_gmt":"2011-11-15T21:48:09","guid":{"rendered":"http:\/\/www.binarydevotion.com\/?p=102"},"modified":"2011-11-15T21:48:09","modified_gmt":"2011-11-15T21:48:09","slug":"html-howto-amiga-computing-87-june-1995","status":"publish","type":"post","link":"http:\/\/www.binarydevotion.com\/?p=102","title":{"rendered":"HTML Howto, Amiga Computing 87, June 1995"},"content":{"rendered":"<address>(Editor&#8217;s note: this was published in June 1995.\u00c2\u00a0 Things have changed a lot!)<\/address>\n<p>By now, you&#8217;d have had to be completely cut off from the world not to have noticed that the World Wide Web (hereon known as the Web) has been growing at a rate bigger than exponential. We&#8217;re talking explosion proportions, here. Massive does not really come close&#8230;<\/p>\n<p>However, you may still be wondering something along the lines of &#8220;Yes, but how do I get involved and publish on the Web?&#8221; in which case this article should answer your question.<\/p>\n<p>The World Wide Web uses a standard language to transfer it&#8217;s hypertext data around the net called HTML, short for Hyper Text Markup Language. HTML is a subset of SGML (that&#8217;s Standard General Markup Language) and was brought into being by CERN where they also play with particle accelerators and other expensive toys. You can tell this is new because the acronyms have moved from being three letters to four &#8211; must be something special&#8230;<\/p>\n<p>The Web is basically a huge example of client\/server computing: multiple clients can be furnished by one server. There are many different clients that can be used to interpret the data sent to them by the server, and the Amiga has an excellent one of these.<\/p>\n<p><a href=\"http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/AMosaic.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-123\" title=\"AMosaic\" src=\"http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/AMosaic-300x240.jpg\" alt=\"\" width=\"300\" height=\"240\" srcset=\"http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/AMosaic-300x240.jpg 300w, http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/AMosaic-1024x819.jpg 1024w, http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/AMosaic.jpg 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>The most popular client has to be Mosaic, which has been already described as the Internet&#8217;s killer application and with good reason &#8211; the use of the Web rose by 300,000% in 1993 and is still rising.<\/p>\n<p>AMosaic is a port from the NCSA Mosaic package, originally found in the *NIX world with X Window systems. The beauty of this package is that it will run with practically any protocol stack (such as AmiTCP or DNet) seamlessly, meaning you can use AMosaic on an ethernet network or via your dialup SLIP\/PPP link from a service provider.<\/p>\n<p>On the other side of things, publishing Web data means that you need a server to listen for requests for pages to be sent. Again, NCSA&#8217;s HTTPdaemon has been ported across to the Amiga but before you start rushing for your copy of httpd, think if you&#8217;d really want your Amiga constantly connected; just imagine the phone bills! The only current way to get Web space is to pay a provider to store your data for you which is slowly coming down in cost. Alternatively, if you&#8217;re at an academic establishment you may just be able to persuade the powers that be to attach your pages to the WWW. You&#8217;d be amazed how much the application of beer to support staff makes them more amenable to this sort of suggestion.<br \/>\n<!--nextpage--><\/p>\n<h2>&#8220;So what is it?&#8221;<\/h2>\n<p>HTML is simply standard ASCII text as produced by any half decent text editor with embedded commands (called tags) to allow all sorts of fancy things to happen to your text such as include graphics, change the font, embolden things and link to other resources on the Web when viewed through a Web brower.<\/p>\n<h3>Tools of the trade<\/h3>\n<p>To edit your HTML, you&#8217;ll need a text editor &#8211; ED on your workbench disks will do though my favourite editor is VIM which can be found on Aminet, like all the files listed below.<\/p>\n<p>Graphics can be included in your documents too, and for best compatibility these really should be in GIF format as while the Amiga Mosaic supports all file formats known by your datatypes selection, other Web clients do not have this facility and are stuck with GIF.<\/p>\n<p>A conversion program to produce GIF files is therefore essential. There&#8217;s plenty out there to do this but for shareware I&#8217;d recommend ImageStudio as found on Aminet.<\/p>\n<p>You&#8217;ll also need the GIF datatype: As AMosaic uses datatypes you&#8217;ll need OS 3.0 or better to get inlined images, too.<\/p>\n<p>JPEG files are common as well, so you&#8217;ll need the JPEG datatype and some IFF to JPEG converter should you want to produce your own.<\/p>\n<p><a href=\"http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/HTMLHeaven.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-125\" title=\"HTMLHeaven\" src=\"http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/HTMLHeaven-300x225.gif\" alt=\"\" width=\"300\" height=\"225\" srcset=\"http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/HTMLHeaven-300x225.gif 300w, http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/HTMLHeaven.gif 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>If you want to annoy other users, sound links can be made too so you&#8217;ll need a conversion program to produce .au files and play them back. Playback can be handled by the AMS suppliment from Commodore which can be again found on Aminet.<\/p>\n<p>Less common over the Web is use of animation, though it is supported by some machines in the form of MPeg or Quicktime files. MPlay will play back mpegs fairly well and XAnim supports mpeg along with Quicktime files too, though is buggy at the moment.<\/p>\n<p>A nice tool to aid HTML composition is called HTML-Heaven from Paul Kolenbrander. This is a program which interfaces to any AREXX compatible editor (like ED) and allows tags entry to be replaced with a single click of the mouse.<\/p>\n<p>Finally, you&#8217;ll need AMosaic along with MUI 2 or above.<\/p>\n<p>Now you&#8217;re tooled up, let&#8217;s actually take a peek at what this HTML stuff is then, shall we?<br \/>\n<!--nextpage--><\/p>\n<h2>Writing WWW Pages<\/h2>\n<p>WWW pages are made up of HTML, which is just ASCII text with embedded commands called tags.<\/p>\n<p>Tags for HTML are embedded in between less than and greater than signs (&lt;&gt;) and control the appearance of the document on screen. Some require switching off after their usefulness is finished, for example the title of a document is set by &lt;TITLE&gt; and the end of the title is designated by &lt;\/TITLE&gt;. We&#8217;ll take a look at quite a few of these tags in turn.<\/p>\n<p>First of all, all Web pages should be enclosed in an outer tag showing that they&#8217;re HTML. For this, the &lt;HTML&gt; tag is used as the first element of your document, with &lt;\/HTML&gt; at the end. On some browsers this is not necessary but for future compatibility it really should be included.<\/p>\n<p>Web pages currently have two sections within them, these being the header and the body section.<\/p>\n<p>First comes the header of your page which tells your browser about the title of the document as appears in document title (surprisingly) and other data such as the absolute path for this document. This is enclosed in &lt;HEAD&gt; and &lt;\/HEAD&gt; tags. Inside the head, you&#8217;ll want to give your document a title, an example being &lt;TITLE&gt;Home brewing for the hard of thinking&lt;\/TITLE&gt;. There are more elements that can be put in the head. For a full list, see the URLs provided in the references section.<\/p>\n<p><a href=\"http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/Example.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-124\" title=\"Example\" src=\"http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/Example-300x225.gif\" alt=\"\" width=\"300\" height=\"225\" srcset=\"http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/Example-300x225.gif 300w, http:\/\/www.binarydevotion.com\/wp-content\/uploads\/2011\/02\/Example.gif 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Next off comes the body of the text, and this is where it all happens. The &lt;BODY&gt; and &lt;\/BODY&gt; tags should be used to define the start and end.<\/p>\n<p>Inside here, all text is freeform which means that entries such as tabs, multiple spaces and carriage returns are translated into a single space which can be useful most of the time but a right pain for some things.<\/p>\n<p>To get around this, a paragraph break is inserted into the text using &lt;P&gt;. This is an HTML tag that does not have to be turned off as it merely specifies a break, not a paragraph. Similarly, the &lt;BR&gt; tag forces a line break in your text but does not insert a blank line like &lt;P&gt; does.<\/p>\n<p>For text formatting, HTML doesn&#8217;t allow you to specify explicitly the name of the font and size of font to use, but has a range of predefined styles. For headings, there are five levels of strength, ranging from &lt;H1&gt; to &lt;H5&gt;, all of which must be turned off with &lt;\/Hn&gt; when finished.<\/p>\n<p>Bold and Italicised text are also available in more than one way. HTML defines logical styles as well as physical, so for bold text either &lt;STRONG&gt; or &lt;B&gt; can be used. Italics has the same strangeness, with either &lt;CITE&gt; or &lt;I&gt; being used. We&#8217;ll look at the whys and wherefores of this later.<\/p>\n<h3>Pretty pictures in your text<\/h3>\n<p>To insert an in-line image into your text, the tag &lt;IMG n&gt; is used, with n being either one or many subtags. The most important one is SRC=&#8221;filename&#8221; where filename is the name of the file to use. This brings up the important topic of relative filenames: to go back a directory, you MUST use the *NIX &#8216;..\/&#8217; to go back otherwise some systems will interpret &#8216;\/&#8217; as the equivalent of &#8216;:&#8217; on the Amiga &#8211; ie the root directory. For HTML, the directory separator remains &#8216;\/&#8217;, though.<\/p>\n<p>The other two important tags that can be defined inside &lt;IMG&gt; are ALIGN=pos to align the text following the image with either the top, middle or bottom of the picture (with pos being TOP, MIDDLE or BOTTOM) and the other being ALT=&#8221;text&#8221;, where text is the text that will appear on a non-graphical Web browser, such as Lynx.<\/p>\n<p>Note that the inline graphics files have to be in GIF format to be decoded by all viewers.<\/p>\n<h3>Lists, lists and lists<\/h3>\n<p>Mosaic supports various formats for lists, too. The most common are the ordered list, unordered list and definition list.<\/p>\n<p>Ordered lists are started with the &lt;OL&gt; tag, have the entries preceeded by &lt;LI&gt; (with no &lt;\/LI&gt; tag) and the list is finished with &lt;\/OL&gt;. An ordered list is a list that has a number preceding all list entries.<\/p>\n<p>Unordered lists are exactly the same, with &lt;UL&gt; and &lt;\/UL&gt; replacing the &lt;OL&gt; and &lt;\/OL&gt; along with bullets replacing the numbers.<\/p>\n<p>Definition lists allow a definition title followed by a description of that title to be listed. &lt;DL&gt; starts the process off, &lt;DT&gt; defines the definition title and &lt;DD&gt; describes the definition linked to that title. &lt;\/DL&gt; turns off the list and as before there is no need to use &lt;\/DT&gt; or &lt;\/DD&gt; at the end of the titles or definitions.<\/p>\n<h3>Making the links<\/h3>\n<p>The anchor tag allows for points inside a document to be labelled and for links to other URLs (uniform resource locations) to be made. To define a label inside a document, &lt;A NAME=&#8221;name&#8221;&gt; is used, and I&#8217;ll leave you to guess what replaces name.<\/p>\n<p>The interesting bit is making links: this is done by &lt;A HREF=&#8221;url&#8221;&gt;, where URL is either a full URL (such as http:\/\/agora.leeds.ac.uk\/csznml\/Intro\/author.html&#8221;&gt; or relative, such as ..\/beer.html. The elements then to make the link follow, and the link command is closed with &lt;\/A&gt;.<\/p>\n<p>A URL does not have to be an HTML document &#8211; it could be a picture, sound file, postscript file, an FTP link, GOPHER link or many more. See one of the references for more information.<\/p>\n<h3>Other Bits<\/h3>\n<p>Horizontal rules run a line horizontally across your document and are used with the &lt;HR&gt; tag. Another useful tag is the &lt;ADDRESS&gt; tag, which is a logical text style that should be used to sign your documents. This one needs turning off after use.<\/p>\n<p>There are many, many more tags but these are the ones that see most use. For more, see the references again.<\/p>\n<h2><!--nextpage-->A Question of Style<\/h2>\n<p>So far, so good. You know what makes up HTML, but what makes good HTML? The Web&#8217;s explosion has been likened to the desktop revolution that occurred when DTP packages became available to all and sundry &#8211; all of a sudden, unreadable documents appeared without structure or a defined style.<\/p>\n<p>Despite the fact that HTML trys to set a style for things such as paragraph formatting, it is very easy to make ugly HTML documents. Very easy. Just wander for a few minutes around the Web and you&#8217;ll see plenty.<\/p>\n<p>The best way to develop a style is to consciously think about how you will lay things out and then start writing &#8211; plan first, then stick to your guns. This keeps a feel to your Web site that should be acceptable if you&#8217;ve thought about it.<\/p>\n<p>I&#8217;m not going to try and preach and say that this is right, that&#8217;s wrong but rather point out some common pitfalls that plague the web at the moment and give some tips so everyone who&#8217;s paying to look at your information will not be sending you a bill for timewasting.<\/p>\n<p>Always give some sort of reference for your documents. Really every document should be signed by using the &lt;ADDRESS&gt; tag with your name, email address and the last modification date inside it. People know who to praise or blame then&#8230;<\/p>\n<p>When in-lining graphic images, stop and consider the size of the file before including it. 15K seems to be about the acceptable limit for modem access, as this will take around 10 seconds to download with a 14.4KBaud link. Of course, if the document is intended for local use on a LAN then this is less of an issue. However, a good way to deal with the problem is to inline a thumbnail and use this as a link to the larger version to be displayed on your external viewer.<\/p>\n<p>One thing that seems universally hated is the infamous &#8220;Click here&#8221; statement to make a link. It is considered to be much better practice to avoid this. For example, instead of saying &#8220;Click here for information on xxx&#8221;, the phrase &#8220;More information concerning xxxx is available&#8221; makes more sense on all browsers.<\/p>\n<p>A problem when developing on the Amiga is file name capitalisation. Whilst the Amiga will take a file originally called `AcHomepage.html&#8217; and access it as `acHomePage.HTML&#8217;, *NIX will not. This is not an issue if using the Amiga to serve information, but as most people will be relying on a service provider who probably installs the pages on a *nix box it suddenly becomes one. In short, check all capitalisations or simply always use lower case for file names and upper case for directories (or whatever takes your fancy &#8211; the point being stick to it). As a diversion, if using *nix also make sure that the file permissions for your pages and all graphics are set to globally readable, otherwise other people will not be able to access them.<\/p>\n<p>The argument between logical and physical styles is set to run and run, though many will advocate the use of logical only where necessary. This seems justified as it leaves the door open for a better way to present a piece of information marked as STRONG or as a citation. If you definitely want bold or italics, use them though.<\/p>\n<h2><!--nextpage-->Getting it Up<\/h2>\n<p>So then. These pages that you&#8217;ve written on your trusty Amiga, checked with AMosaic and found to be good &#8211; you want to publish them.<\/p>\n<p>Discounting the dedicated, constantly dialed up connection as far too expensive, what else is there?<\/p>\n<p>As mentioned previously, members of Academia may be able to persuade their support team to help but for the rest, some other method needs to be found. The solution is the providers that can supply Web space, normally at a cost ranging from not really cheap to remortgage the dog.<\/p>\n<p>The two most common providers who allow WWW storage are Demon, who will soon be giving subscribers limited WWW space free and Cityscape who give subscribers 500KB free. Demon charge \u00c2\u00a325 per month for up to 5MB of space whereas Cityscape charge what appears to be a more reasonable \u00c2\u00a360 per MB for a year&#8217;s storage &#8211; however Cityscape do not give technical support to Amiga owners and you have to be a Cityscape IPGold subscriber to make use of their servers. Check with them for more information, though.<br \/>\n<!--nextpage--><\/p>\n<h2>Conclusions<\/h2>\n<p>Many more references than this article are available on the Web &#8211; check the boxout if interested.<\/p>\n<p>You now know how and why to write good HTML and how to get your minor works of art on the net. If you can justify any cost involved, then go to it!<\/p>\n<p>There&#8217;s plenty more you can do that hasn&#8217;t been covered, such as forms and scripts or running executables using the cgi. When AMosaic 1.3 is available and supports FORMS, perhaps it&#8217;ll be worth another article&#8230;<\/p>\n<p>Cityscape can be contacted on 01223 566950, email sales@cityscape.co.uk, URL http:\/\/www.cityscape.co.uk\/<br \/>\nDemon 0181 371 1234, email sales@demon.co.uk, URL http:\/\/www.demon.co.uk\/<\/p>\n<p>Should you want to contact Nick Lines, the author of this article, you can do at csznml@scs.leeds.ac.uk. You can also visit his homepage at the URL http:\/\/agora.leeds.ac.uk\/csznml\/homepage.html. Bear in mind that this was intended for use over a LAN so has plenty of image files in it. If you do visit it, please do mail a comment as this would be very helpful. Thanks!<br \/>\n<!--nextpage--><\/p>\n<h2>Jargon Stuff<\/h2>\n<p>The Comms world seems to thrive on jargon just to keep it&#8217;s image as being rather sad. Here&#8217;s some of the more important ones:<\/p>\n<p>NCSA<br \/>\nAmerica&#8217;s National Centre for Supercomputing Applications, where Mosaic was developed.<\/p>\n<p>CGI<br \/>\nCommon gateway interface: An interface allowing HTML pages to call executable scripts and return the results to the browser.<\/p>\n<p>WWW<br \/>\nYou jest, surely?<\/p>\n<p>URL<br \/>\nUniform Resource Location: a way of accessing a file that tells the browser what method of contact to try and where to find the file once connected to the right server.<\/p>\n<p>References on the Web<\/p>\n<p>For places to start looking for information on writing good html, try the following URLs:<\/p>\n<p>A Beginner&#8217;s Guide to HTML<br \/>\nhttp:\/\/www.ncsa.uiuc.edu\/demoweb\/html-primer.html<\/p>\n<p>HTML Design Notebook<br \/>\nhttp:\/\/www.hal.com\/~connolly\/drafts\/html-design.html<\/p>\n<p>Style Guide for Online Hypertext<br \/>\nhttp:\/\/www.w3.org\/hypertext\/WWW\/Provider\/Style\/Overview.html<\/p>\n<p>HyperText Markup Language (HTML): Working and Background Materials<br \/>\nhttp:\/\/www.w3.org\/hypertext\/WWW\/MarkUp\/MarkUp.html<\/p>\n<p>This are just starting points! There&#8217;s plenty of links to take from them. Be warned that you could be there for a long time.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Editor&#8217;s note: this was published in June 1995.\u00c2\u00a0 Things have changed a lot!) By now, you&#8217;d have had to be completely cut off from the world not to have noticed that the World Wide&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,11,10],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-amiga","category-howtos","category-reviews"],"_links":{"self":[{"href":"http:\/\/www.binarydevotion.com\/index.php?rest_route=\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.binarydevotion.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.binarydevotion.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.binarydevotion.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.binarydevotion.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=102"}],"version-history":[{"count":0,"href":"http:\/\/www.binarydevotion.com\/index.php?rest_route=\/wp\/v2\/posts\/102\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.binarydevotion.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.binarydevotion.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.binarydevotion.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}