|
|
---|
This lecture was prepared for the Gormanston Summer School of 2006. |
---|
The lecture starts with an overhead gel welcoming attendees, this slide also indicates why I use overhead gels for presentation rather than PowerPoint and give an apology for my extensive use of notes, due to Meningitis. The slide also mentions that questions can be answered in the dinner queue, mealtimes or in the Cock Tavern during the evenings. | ||||||
Websites 'R' EasyFirst we have to define what the web actually is... Many people confuse the Internet and the World Wide Web. The Internet... Is an interconnected system of networks that connects computers around the world via the TCP/IP protocol. The World Wide Web... Is a hypertext-based, interconnected set of websites and pages, that was Invented in 1989 by Tim Berners-Lee, that runs within the framework of the Internet. TCP/IP Pronounced as Tea Sea Pea Eye Pea... Short for Transmission Control Protocol/Internet Protocol, the suite of communications protocols used to connect host computers on the Internet. TCP/IP uses several protocols, the two main ones being TCP and IP. TCP/IP is built into UNIX (the main operating system used by the Internet, making it the de-facto standard for transmitting data over networks. Even network operating systems that have their own protocols, like Netware, also support TCP/IP. What is a website?A website is simply a collection of files that provide information on any topic that are placed on the web, at a specific address that can be accessed by a user. The files themselves are very simple text files and are assembled within the viewer's computer by an application known as a browser, this file content is laid out according to a set of rules suited to screen display. It is a process that involves the very minimum of signal traffic on the Internet and the information from each page is cached locally on the viewer's machine so that any repeated files do not need re-sending. This simplicity is where the speed comes from, our job in creating a website is to keep the files as simple as possible, consistent with them containing an adequate amount of information. This simplicity means that this lecture contains overhead gels that are almost all text based, (normally not good lecturing practice) I hope this does not detract too much from the experience. Simplicity of coding, does not necessarily mean that a site has to be boring, your first few attempts may not be very sparkling, but you will get better as you gain experience. Creating a Website involves six basic stages:- 1. Planning
2. Content development
3. Graphic design
4. Writing the code
5. Marketing and promotion
6. Maintenance
Measuring traffic and tracking visitors to your website, and how they navigate through it, can help you refine and improve the site. You can measure visits to your website by analyzing your web server's log files, these tell you when and how often specific files were downloaded. You can also see which pages are most popular. Log files can record which domains (web servers) visitors came from, but not exactly who they are. ROBOTS... The internet is populated with many strange beings (they do not all look like me :-) They have names like Spiders, web crawlers, active agents or just plain robots. The main task of these robotic ferrets is to index the web so that when you ask for information by typing into a search box, you get not only what you asked for, but the cream of what is on the web that deals with your subject. OK... I have rattled on about how easy it is to write good quality code, so how is it done? HTML allows you to specify text size, color and font and has Tags for the placement of graphics, tables, bulleted or numbered lists on web page. HTML files are written and stored in ASCII (plain text) format, so they can be easily and quickly transferred between computers using different operating systems and can be easily read by either humans or computers. (Again, hand coded pages are more easy to read than software generated ones.) Formatting "tags" instruct a web browser how to display an element in a hypertext document. They are enclosed in 'less than' and 'greater than' symbols used rather like brackets, and in general there is an opening tag and a closing tag... Here is an example,
All the different web browsers will display HTML files, but different browsers may render the code to a slightly different layout on the screen. This is due to the browsers being designed by large software companies that take little heed of the rules laid down by the World Wide Web Consortium (W3C). W3C actually make the rules for how the web works. The differences between browsers are small and there are coding tricks that you can learn that will take care of most of the differences. All the standards for all aspects of web coding are available on the W3C website, however it is written by geeks like me and takes time to get used to, if you struggle, a quick Email to me will enable me to point to the information that you need.
A simple web page will look like this...
Now to explain why... The <html> and </html> tags tell the rest of the world that what is between them is an HTML document and should be parsed by a browser application. The document is in two halves, A 'head' portion and a 'body' portion, each enclosed in the tags <head></head> and <body></body>. The two sections are dealt with differently, the head section is where information intended for robots is placed and it does not show on the screen, in my example the words between the <title> and </title> tags tell the internet that this page is titled 'My First Web Page'. There are two items within the <body> and </body> tags, the first of these is the title that will show on the screen and it is rendered large and bold by the <h1> and </h1> tags. The second is a paragraph (represented here by just the words 'Body text (Hello World !)' that are enclosed by the <p> and </p> tags. A few Do's and Don'tsAnimation and multimedia can add interest to a website, but use them sparingly, they soon become an annoying nuisance to the surfer. Since multimedia files tend to be large, they may take a long time to download, possibly frustrating your audience. If you must use animation... Use animated GIFs. The file size can be kept small and all web browsers support them. Beware of requiring visitors to have browser plug-ins. Many people won't take the time to download and install them. Use Java applets sparingly, as they run slowly on older computers. Use JavaScript sparingly and never use it for navigational purposes, as you will get very poor marks from the search engine spiders . Do not use code 'just because it works', many browsers will render bad code so that it looks reasonable on screen, but that does not make it 'right' and you will score low marks with the robots. Frames are bad... They were a common way to organise a website when the net was in it's infancy, but things have grown up and everything that you could ever do with frames can now be done by CSS far more efficiently. BooksI am often asked to recommend books to help in coding, but I'm afraid the pace of development on the net outstrips conventional publishing to such an extent that nothing ever appears in print that is current. There are many books available, (I have a shelf full), but all of them have at least some wrong information. The only thing I can recommend is keeping up to date by reading the information published on the W3C site. Having said that, do not use the latest 'cutting edge' ideas, they take time to get implemented in browser software, so it is safer to lag behind by about a year on the latest ideas. Office Software... Is something that many computer users are used to, but it is designed for producing printed documents. A web page is viewed on a screen and it's layout is due partly to your coding and partly due to the browser. Screens come in all shapes and sizes, and the user's browser knows what size screen the computer has, so it is wise to let the browser handle most of the layout so you do not need to get involved in tedious layout coding. Always remember that software that is sold to you, is designed for connectivity with other pieces of software that are marketed by that company, your ease of use and fitness for purpose come way down the list. Part two, this afternoon, will tell you how I translate all of this into the pages that I produce for my own website. |
Editors Note, both Euros and GB pounds are mentioned as they are both widely understood in Ireland.
Written... 09 July 2006, Printing Format Changed... 21 July 2006, |
|
---|